From 95c564cabe2837be56f2cf3901a4d6d9d84ab6c9 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 4 Jun 2010 23:02:44 +0200 Subject: [PATCH] gsettingsbackend.h: pretend to be gio.h Since #include is a perfectly valid thing for applications to do, and since we want to include gio headers from gsettingsbackend.h, we need to effectively disable the #error we would get from those headers (because we're not coming via gio.h). We don't want to #include here because this would cause needless rebuilding of GSettingsBackend, GSettings, GDelayedSettingsBackend, etc... every time someone changed anything in any public header. --- gio/gsettingsbackend.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gio/gsettingsbackend.h b/gio/gsettingsbackend.h index b454b42..23b9371 100644 --- a/gio/gsettingsbackend.h +++ b/gio/gsettingsbackend.h @@ -28,7 +28,9 @@ #error "You must define G_SETTINGS_ENABLE_BACKEND before including ." #endif -#include +#define __GIO_GIO_H_INSIDE__ +#include +#undef __GIO_GIO_H_INSIDE__ G_BEGIN_DECLS -- 2.7.4