summaryrefslogtreecommitdiff
path: root/json-glib/json-gvariant.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-12-04 12:43:37 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2013-12-04 12:43:37 +0000
commit0d6a2da5775de27160f9fd0bad783cb7d45d8dac (patch)
treeb642e6555de9d584c0ae2b682b17a36aea9a105c /json-glib/json-gvariant.h
parent0de776ea67869b692ee8bd709fd70c0e2368d9fc (diff)
downloadjson-glib-0d6a2da5775de27160f9fd0bad783cb7d45d8dac.tar.gz
Make json-gvariant.h conform to the other headers
Only include the necessary headers, and use a single-header inclusion guard to prevent people from including only json-gvariant.h.
Diffstat (limited to 'json-glib/json-gvariant.h')
-rw-r--r--json-glib/json-gvariant.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/json-glib/json-gvariant.h b/json-glib/json-gvariant.h
index 6644b21..8fb54e5 100644
--- a/json-glib/json-gvariant.h
+++ b/json-glib/json-gvariant.h
@@ -24,8 +24,11 @@
#ifndef __JSON_GVARIANT_H__
#define __JSON_GVARIANT_H__
-#include <glib.h>
-#include <json-glib/json-glib.h>
+#if !defined(__JSON_GLIB_INSIDE__) && !defined(JSON_COMPILATION)
+#error "Only <json-glib/json-glib.h> can be included directly."
+#endif
+
+#include <json-glib/json-types.h>
G_BEGIN_DECLS