]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(STDC_HEADERS): Remove.
authorJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 09:05:16 +0000 (09:05 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 09:05:16 +0000 (09:05 +0000)
Include <stdlib.h>, <string.h> unconditionally.

lib/mktime.c

index 02acc5206797b0bb93bb04f5dd4cdfa41e9b7589..00b834b055ea0941ee61112063aec0b2fee7fa3d 100644 (file)
 # 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.  */
 
 #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)
 \f
 /*
 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:
 */