diff options
author | Simon McVittie <smcv@debian.org> | 2018-01-22 18:14:41 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2018-01-29 08:12:27 +0000 |
commit | 13a000d6c1876bc429057c8a665809353e9cbe4b (patch) | |
tree | 1201d1dff242c0a18a52c628013462cb067915dc | |
parent | fa04927d0c6cd804e4db70b0d393b3086065f7d0 (diff) |
dbus-gmain: Don't include config.h unless HAVE_CONFIG_H is defined
This should make it a little easier to integrate into more build
systems.
Signed-off-by: Simon McVittie <smcv@debian.org>
-rw-r--r-- | dbus-gmain/dbus-gmain.c | 2 | ||||
-rw-r--r-- | dbus-gmain/tests/30574.c | 2 | ||||
-rw-r--r-- | dbus-gmain/tests/test-thread-client.c | 2 | ||||
-rw-r--r-- | dbus-gmain/tests/test-thread-server.c | 2 | ||||
-rw-r--r-- | dbus-gmain/tests/util.c | 2 |
5 files changed, 10 insertions, 0 deletions
diff --git a/dbus-gmain/dbus-gmain.c b/dbus-gmain/dbus-gmain.c index 91f19e9..424eee7 100644 --- a/dbus-gmain/dbus-gmain.c +++ b/dbus-gmain/dbus-gmain.c @@ -26,7 +26,9 @@ * */ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif #include <dbus-gmain/dbus-gmain.h> diff --git a/dbus-gmain/tests/30574.c b/dbus-gmain/tests/30574.c index 3c7e109..a474f29 100644 --- a/dbus-gmain/tests/30574.c +++ b/dbus-gmain/tests/30574.c @@ -1,4 +1,6 @@ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif #include <stdio.h> #include <stdlib.h> diff --git a/dbus-gmain/tests/test-thread-client.c b/dbus-gmain/tests/test-thread-client.c index 2310a14..4bf2d40 100644 --- a/dbus-gmain/tests/test-thread-client.c +++ b/dbus-gmain/tests/test-thread-client.c @@ -1,4 +1,6 @@ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif #include <glib.h> #include <dbus-gmain/dbus-gmain.h> diff --git a/dbus-gmain/tests/test-thread-server.c b/dbus-gmain/tests/test-thread-server.c index 15b8b24..31268e3 100644 --- a/dbus-gmain/tests/test-thread-server.c +++ b/dbus-gmain/tests/test-thread-server.c @@ -1,4 +1,6 @@ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif #include <glib.h> #include <dbus-gmain/dbus-gmain.h> diff --git a/dbus-gmain/tests/util.c b/dbus-gmain/tests/util.c index e819584..ba913b7 100644 --- a/dbus-gmain/tests/util.c +++ b/dbus-gmain/tests/util.c @@ -21,7 +21,9 @@ * 02110-1301 USA */ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif #include "util.h" |