summaryrefslogtreecommitdiff
path: root/json-glib/json-generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'json-glib/json-generator.h')
-rw-r--r--json-glib/json-generator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/json-glib/json-generator.h b/json-glib/json-generator.h
index b2ee7e8..743ec27 100644
--- a/json-glib/json-generator.h
+++ b/json-glib/json-generator.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_GENERATOR_H__
#define __JSON_GENERATOR_H__