summaryrefslogtreecommitdiff
path: root/gobex
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.de.marchi@gmail.com>2012-12-05 09:22:50 -0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-12-05 17:18:07 +0200
commit8a03376544b046a84301847d1594f6c3674983ff (patch)
treec8c6210bbc47b8d550f12f45fbeba18f64edb83d /gobex
parentb84f6f794bd407699bf61884ca6eb54cf896c965 (diff)
downloadbluez-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 'gobex')
-rw-r--r--gobex/gobex-apparam.c4
-rw-r--r--gobex/gobex-defs.c4
-rw-r--r--gobex/gobex-header.c4
-rw-r--r--gobex/gobex-packet.c4
-rw-r--r--gobex/gobex-transfer.c4
-rw-r--r--gobex/gobex.c4
6 files changed, 0 insertions, 24 deletions
diff --git a/gobex/gobex-apparam.c b/gobex/gobex-apparam.c
index 442a3f140..0c3cc8aa4 100644
--- a/gobex/gobex-apparam.c
+++ b/gobex/gobex-apparam.c
@@ -19,10 +19,6 @@
*
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <string.h>
#include <unistd.h>
#include <errno.h>
diff --git a/gobex/gobex-defs.c b/gobex/gobex-defs.c
index c184c9c91..f1f3b38ff 100644
--- a/gobex/gobex-defs.c
+++ b/gobex/gobex-defs.c
@@ -19,10 +19,6 @@
*
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <glib.h>
#include "gobex-defs.h"
diff --git a/gobex/gobex-header.c b/gobex/gobex-header.c
index 80e8e4e6f..6136f2c2b 100644
--- a/gobex/gobex-header.c
+++ b/gobex/gobex-header.c
@@ -19,10 +19,6 @@
*
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <string.h>
#include "gobex-header.h"
diff --git a/gobex/gobex-packet.c b/gobex/gobex-packet.c
index c3e395310..d59bbce2f 100644
--- a/gobex/gobex-packet.c
+++ b/gobex/gobex-packet.c
@@ -19,10 +19,6 @@
*
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <string.h>
#include <errno.h>
diff --git a/gobex/gobex-transfer.c b/gobex/gobex-transfer.c
index 724c78828..f29a7ce25 100644
--- a/gobex/gobex-transfer.c
+++ b/gobex/gobex-transfer.c
@@ -19,10 +19,6 @@
*
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <string.h>
#include <errno.h>
diff --git a/gobex/gobex.c b/gobex/gobex.c
index 7c136af9e..59a0159ee 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -19,10 +19,6 @@
*
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
#include <unistd.h>
#include <string.h>
#include <errno.h>