diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2013-12-04 12:43:37 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2013-12-04 12:43:37 +0000 |
commit | 0d6a2da5775de27160f9fd0bad783cb7d45d8dac (patch) | |
tree | b642e6555de9d584c0ae2b682b17a36aea9a105c /json-glib/json-gvariant.h | |
parent | 0de776ea67869b692ee8bd709fd70c0e2368d9fc (diff) | |
download | json-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.h | 7 |
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 |