Skip to content

Commit

Permalink
Include stdint.h unconditionally
Browse files Browse the repository at this point in the history
The stdint.h header file is available with the C99 and current systems
all have it. It can be included unconditionally.
  • Loading branch information
petk authored and derickr committed Aug 20, 2024
1 parent 21af149 commit 3d76f00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ FLAGS=-O0 -ggdb3 \
-fno-optimize-sibling-calls \
-fstack-protector \
-pedantic \
-DHAVE_STDINT_H -DHAVE_GETTIMEOFDAY -DHAVE_UNISTD_H -DHAVE_DIRENT_H -I.# -DDEBUG_PARSER
-DHAVE_GETTIMEOFDAY -DHAVE_UNISTD_H -DHAVE_DIRENT_H -I.# -DDEBUG_PARSER

CFLAGS_BASE=-Wdeclaration-after-statement ${FLAGS}
CFLAGS=-fsanitize=address -fsanitize=undefined ${CFLAGS_BASE}
Expand Down
4 changes: 1 addition & 3 deletions timelib_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
#include <sys/types.h>
#endif

#if defined(HAVE_STDINT_H)
# include <stdint.h>
#endif
#include <stdint.h>

#if defined(HAVE_UNISTD_H)
# include <unistd.h>
Expand Down

0 comments on commit 3d76f00

Please sign in to comment.