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 <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
This commit is contained in:
Simon McVittie 2013-02-18 14:30:22 +00:00
parent 0e90efd5b2
commit 4a0b41ee31
4 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,5 @@
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View 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)

View file

@ -27,6 +27,7 @@
* SUCH DAMAGE.
*/
#include "config.h"
#include <limits.h>
#ifdef HAVE_ERRNO_H

View file

@ -27,6 +27,7 @@
* SUCH DAMAGE.
*/
#include "config.h"
#include <limits.h>
#ifdef HAVE_ERRNO_H