summaryrefslogtreecommitdiff
path: root/profiles/scanparam
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 /profiles/scanparam
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 'profiles/scanparam')
-rw-r--r--profiles/scanparam/main.c4
-rw-r--r--profiles/scanparam/manager.c4
-rw-r--r--profiles/scanparam/scan.c4
3 files changed, 0 insertions, 12 deletions
diff --git a/profiles/scanparam/main.c b/profiles/scanparam/main.c
index 74e8a5543..509966618 100644
--- a/profiles/scanparam/main.c
+++ b/profiles/scanparam/main.c
@@ -22,10 +22,6 @@
*
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <errno.h>
#include <stdint.h>
#include <glib.h>
diff --git a/profiles/scanparam/manager.c b/profiles/scanparam/manager.c
index cea2b29cc..8acade17e 100644
--- a/profiles/scanparam/manager.c
+++ b/profiles/scanparam/manager.c
@@ -22,10 +22,6 @@
*
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <stdbool.h>
#include <errno.h>
#include <glib.h>
diff --git a/profiles/scanparam/scan.c b/profiles/scanparam/scan.c
index 849336e24..49f1eda4a 100644
--- a/profiles/scanparam/scan.c
+++ b/profiles/scanparam/scan.c
@@ -22,10 +22,6 @@
*
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <stdbool.h>
#include <bluetooth/bluetooth.h>