summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-09-17 18:51:53 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-20 20:49:29 +0000
commit267c69ac90d6c8e8ef4b8a80e669db16febb2b55 (patch)
tree380bf7159a61ea0bd7a798ac42db40401f8b8359
parent21162d7de6fa7c7fac3712cc0c20dbf2b743492d (diff)
sysdeps: try to avoid re-including config.h
Re-including config.h after we have already included glib.h breaks the GLIB_VERSION_MAX_ALLOWED macro, and every .c file should be including config.h anyway. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83115 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
-rw-r--r--dbus/dbus-sysdeps.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h
index 181d9af8..5f2b8677 100644
--- a/dbus/dbus-sysdeps.h
+++ b/dbus/dbus-sysdeps.h
@@ -25,7 +25,10 @@
#ifndef DBUS_SYSDEPS_H
#define DBUS_SYSDEPS_H
+#ifndef VERSION
+#warning Please include config.h before dbus-sysdeps.h
#include "config.h"
+#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>