From: Simon McVittie Date: Mon, 18 Feb 2013 14:30:22 +0000 (+0000) Subject: Include config.h as the first thing in every .c file X-Git-Tag: dbus-1.7.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a0b41ee31bdc67c56f672f6e0a64c42bf34c1ae;p=thirdparty%2Fdbus.git Include config.h as the first thing in every .c file ...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 Reviewed-by: Colin Walters --- diff --git a/test/name-test/test-autolaunch.c b/test/name-test/test-autolaunch.c index 5e5198957..adbeb1856 100644 --- a/test/name-test/test-autolaunch.c +++ b/test/name-test/test-autolaunch.c @@ -1,3 +1,5 @@ +#include "config.h" + #include #include #include diff --git a/test/test-exit.c b/test/test-exit.c index f3358185c..b4f967ae4 100644 --- a/test/test-exit.c +++ b/test/test-exit.c @@ -1,3 +1,5 @@ +#include "config.h" + /* This is a process that just exits with a failure code */ int main (int argc, char **argv) diff --git a/tools/strtoll.c b/tools/strtoll.c index e4f577019..7360c6302 100644 --- a/tools/strtoll.c +++ b/tools/strtoll.c @@ -27,6 +27,7 @@ * SUCH DAMAGE. */ +#include "config.h" #include #ifdef HAVE_ERRNO_H diff --git a/tools/strtoull.c b/tools/strtoull.c index 459c5091a..35595542b 100644 --- a/tools/strtoull.c +++ b/tools/strtoull.c @@ -27,6 +27,7 @@ * SUCH DAMAGE. */ +#include "config.h" #include #ifdef HAVE_ERRNO_H