summaryrefslogtreecommitdiff
path: root/lib/mktime.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-10 09:05:16 +0000
committerJim Meyering <jim@meyering.net>2003-09-10 09:05:16 +0000
commit820c8fc670f9e88b3b2aab8a0d709d1fac09d1b1 (patch)
treef3736e202bec80335d38ba07aee7db03f05b3124 /lib/mktime.c
parent76b378fe2a880d38a5d660fb13efc92768881e8c (diff)
downloadcoreutils-820c8fc670f9e88b3b2aab8a0d709d1fac09d1b1.tar.xz
(STDC_HEADERS): Remove.
Include <stdlib.h>, <string.h> unconditionally.
Diffstat (limited to 'lib/mktime.c')
-rw-r--r--lib/mktime.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/mktime.c b/lib/mktime.c
index 02acc5206..00b834b05 100644
--- a/lib/mktime.c
+++ b/lib/mktime.c
@@ -25,10 +25,6 @@
# include <config.h>
#endif
-#ifdef _LIBC
-# define STDC_HEADERS 1
-#endif
-
/* Assume that leap seconds are possible, unless told otherwise.
If the host has a `zic' command with a `-L leapsecondfilename' option,
then it supports leap seconds; otherwise it probably doesn't. */
@@ -43,10 +39,8 @@
#if DEBUG
# include <stdio.h>
-# if STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-# endif
+# include <stdlib.h>
+# include <string.h>
/* Make it work even if the system's libc has its own mktime routine. */
# define mktime my_mktime
#endif /* DEBUG */
@@ -635,6 +629,6 @@ main (int argc, char **argv)
/*
Local Variables:
-compile-command: "gcc -DDEBUG -DSTDC_HEADERS -Wall -W -O -g mktime.c -o mktime"
+compile-command: "gcc -DDEBUG -Wall -W -O -g mktime.c -o mktime"
End:
*/