mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
gsettingsbackend.h: pretend to be gio.h
Since #include <gsettingsbackend.h> 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 <gio/gio.h> here because this would cause needless rebuilding of GSettingsBackend, GSettings, GDelayedSettingsBackend, etc... every time someone changed anything in any public header.
This commit is contained in:
parent
4733488178
commit
95c564cabe
@ -28,7 +28,9 @@
|
||||
#error "You must define G_SETTINGS_ENABLE_BACKEND before including <gio/gsettingsbackend.h>."
|
||||
#endif
|
||||
|
||||
#include <glib-object.h>
|
||||
#define __GIO_GIO_H_INSIDE__
|
||||
#include <gio/giotypes.h>
|
||||
#undef __GIO_GIO_H_INSIDE__
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user