From 267c69ac90d6c8e8ef4b8a80e669db16febb2b55 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 17 Sep 2014 18:51:53 +0100 Subject: 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 --- dbus/dbus-sysdeps.h | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3