summaryrefslogtreecommitdiff
path: root/json-glib/json-glib.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2009-08-12 13:48:17 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2009-08-12 13:48:17 +0100
commitd84c0f367b06e094ff693d60a724b9f141c33ca9 (patch)
tree471ea55d3b3b1902ac208ab43e6c9a352b841f6b /json-glib/json-glib.h
parent3adba015e1c1f9edc7b7b2c4364d65f813216225 (diff)
downloadjson-glib-d84c0f367b06e094ff693d60a724b9f141c33ca9.tar.gz
Disallow single header file inclusion
The correct header file for JSON-GLib is, and has always been, json-glib.h. Anything else was not supported, as we've been moving around stuff for a while, now. This commit enforces the single include file, using the same policy enacted by other libraries, like: GLib, GTK+ and Clutter.
Diffstat (limited to 'json-glib/json-glib.h')
-rw-r--r--json-glib/json-glib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/json-glib/json-glib.h b/json-glib/json-glib.h
index 35e3813..794a8be 100644
--- a/json-glib/json-glib.h
+++ b/json-glib/json-glib.h
@@ -24,10 +24,16 @@
#ifndef __JSON_GLIB_H__
#define __JSON_GLIB_H__
+#define __JSON_GLIB_INSIDE__
+
#include <json-glib/json-types.h>
#include <json-glib/json-generator.h>
#include <json-glib/json-parser.h>
#include <json-glib/json-version.h>
#include <json-glib/json-enum-types.h>
+#include <json-glib/json-gobject.h>
+
+#undef __JSON_GLIB_INSIDE__
+
#endif /* __JSON_GLIB_H__ */