Include config.h as the first thing in every .c file
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 18 Feb 2013 14:30:22 +0000 (14:30 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 22 Feb 2013 13:08:27 +0000 (13:08 +0000)
...except for CheckForAbstractSockets.c, which runs before config.h is
generated, and sd-daemon.c, which is externally-maintained.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=59971
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
test/name-test/test-autolaunch.c
test/test-exit.c
tools/strtoll.c
tools/strtoull.c

index 5e519895720d8ac0891650ed26c5092ecaf0df0d..adbeb18562a52268bb0827bca832a866df3a8a73 100644 (file)
@@ -1,3 +1,5 @@
+#include "config.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index f3358185c5303254e4dce72cdc06a38a64e61f5d..b4f967ae46ef1e6deb8afea57a87e2eb9fc4beb7 100644 (file)
@@ -1,3 +1,5 @@
+#include "config.h"
+
 /* This is a process that just exits with a failure code */
 int
 main (int argc, char **argv)
index e4f577019423bb26bb3cd7db0cb41ec4fd218e92..7360c630252a41a147c6c581bd99f02556c9e34d 100644 (file)
@@ -27,6 +27,7 @@
  * SUCH DAMAGE.
  */
 
+#include "config.h"
 
 #include <limits.h>
 #ifdef HAVE_ERRNO_H
index 459c5091a80eb3ff252cf13783873e0db6dd5dc3..35595542b4c20682c30d64f8a29dce227630fd07 100644 (file)
@@ -27,6 +27,7 @@
  * SUCH DAMAGE.
  */
 
+#include "config.h"
 
 #include <limits.h>
 #ifdef HAVE_ERRNO_H