diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2009-08-12 13:48:17 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2009-08-12 13:48:17 +0100 |
commit | d84c0f367b06e094ff693d60a724b9f141c33ca9 (patch) | |
tree | 471ea55d3b3b1902ac208ab43e6c9a352b841f6b /json-glib/json-parser.h | |
parent | 3adba015e1c1f9edc7b7b2c4364d65f813216225 (diff) | |
download | json-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-parser.h')
-rw-r--r-- | json-glib/json-parser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/json-glib/json-parser.h b/json-glib/json-parser.h index f4bc2ea..7589464 100644 --- a/json-glib/json-parser.h +++ b/json-glib/json-parser.h @@ -21,6 +21,10 @@ * Emmanuele Bassi <ebassi@linux.intel.com> */ +#if !defined(__JSON_GLIB_INSIDE__) && !defined(JSON_COMPILATION) +#error "Only <json-glib/json-glib.h> can be included directly." +#endif + #ifndef __JSON_PARSER_H__ #define __JSON_PARSER_H__ |