diff options
author | Lucas De Marchi <lucas.de.marchi@gmail.com> | 2012-12-05 09:22:50 -0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-12-05 17:18:07 +0200 |
commit | 8a03376544b046a84301847d1594f6c3674983ff (patch) | |
tree | c8c6210bbc47b8d550f12f45fbeba18f64edb83d /profiles/sap | |
parent | b84f6f794bd407699bf61884ca6eb54cf896c965 (diff) | |
download | bluez-8a03376544b046a84301847d1594f6c3674983ff.tar.gz |
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.
Diffstat (limited to 'profiles/sap')
-rw-r--r-- | profiles/sap/main.c | 4 | ||||
-rw-r--r-- | profiles/sap/manager.c | 4 | ||||
-rw-r--r-- | profiles/sap/sap-dummy.c | 4 | ||||
-rw-r--r-- | profiles/sap/server.c | 4 |
4 files changed, 0 insertions, 16 deletions
diff --git a/profiles/sap/main.c b/profiles/sap/main.c index 4894f2e1a..c5df5a1e5 100644 --- a/profiles/sap/main.c +++ b/profiles/sap/main.c @@ -18,10 +18,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <gdbus.h> #include "plugin.h" diff --git a/profiles/sap/manager.c b/profiles/sap/manager.c index fddd7aa64..36fdb6c69 100644 --- a/profiles/sap/manager.c +++ b/profiles/sap/manager.c @@ -18,10 +18,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdbool.h> #include "log.h" diff --git a/profiles/sap/sap-dummy.c b/profiles/sap/sap-dummy.c index 36354b893..a3e08bbbc 100644 --- a/profiles/sap/sap-dummy.c +++ b/profiles/sap/sap-dummy.c @@ -22,10 +22,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glib.h> #include <gdbus.h> #include <stdint.h> diff --git a/profiles/sap/server.c b/profiles/sap/server.c index bb37c18e9..24441d145 100644 --- a/profiles/sap/server.c +++ b/profiles/sap/server.c @@ -24,10 +24,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <glib.h> #include <bluetooth/sdp.h> |