]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
<config.h>: Include first, since it can do
authorJim Meyering <jim@meyering.net>
Tue, 20 Apr 1999 13:26:06 +0000 (13:26 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 20 Apr 1999 13:26:06 +0000 (13:26 +0000)
things like #define const, and this must be done before
including any system headers.

src/shred.c

index ceba22919898e9df34d514262ee0055bd9294cd8..e7b83e4398b88182d7009a9d90f2905dea84e6b8 100644 (file)
 
 #define AUTHORS "Colin Plumb"
 
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include <getopt.h>
 #include <stdio.h>
 #include <setjmp.h>
@@ -84,8 +88,6 @@
 
 #if HAVE_CONFIG_H
 /* Default fileutils build */
-# include <config.h>
-
 # include "system.h"
 # include "xstrtol.h"
 # include "closeout.h"