From 8a03376544b046a84301847d1594f6c3674983ff Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 5 Dec 2012 09:22:50 -0200 Subject: Ensure config.h is included by using CPPFLAGS Instead of trying to include config.h in each file over the tree and possibly forgetting to include it, give a "-include config.h" argument to the compiler so it's guaranteed that a) it will be included for all source files and b) it will be the first header included. gdbus/ directory is left out, since it would break other projects using it. --- profiles/alert/main.c | 4 ---- profiles/alert/manager.c | 4 ---- profiles/alert/server.c | 4 ---- 3 files changed, 12 deletions(-) (limited to 'profiles/alert') diff --git a/profiles/alert/main.c b/profiles/alert/main.c index b9df0d4d6..70595f5a4 100644 --- a/profiles/alert/main.c +++ b/profiles/alert/main.c @@ -22,10 +22,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - #include #include #include diff --git a/profiles/alert/manager.c b/profiles/alert/manager.c index eb2d62708..1a655f0c1 100644 --- a/profiles/alert/manager.c +++ b/profiles/alert/manager.c @@ -22,10 +22,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - #include "manager.h" #include "server.h" diff --git a/profiles/alert/server.c b/profiles/alert/server.c index 1c929060b..60d010816 100644 --- a/profiles/alert/server.c +++ b/profiles/alert/server.c @@ -22,10 +22,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - #include #include #include -- cgit v1.2.1