From ba390557ceaae6a0a54a4243eb824533eeed55d3 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 17 Sep 2014 18:51:53 +0100 Subject: [PATCH 7/7] 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. --- dbus/dbus-sysdeps.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h index ca9a5f5..68c53de 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 -- 2.1.0