summaryrefslogtreecommitdiff
path: root/json-glib/json-parser.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-12-04 12:41:06 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2013-12-04 12:41:06 +0000
commit0de776ea67869b692ee8bd709fd70c0e2368d9fc (patch)
tree5a9e66aa86a5d97c554e58f29dc8d20d53a72a0d /json-glib/json-parser.h
parentb3072da5a2e897b2b87f84d30485bf316c4476fb (diff)
downloadjson-glib-0de776ea67869b692ee8bd709fd70c0e2368d9fc.tar.gz
Move the single include guard after multiple inclusion one
GCC (and other compilers) can optimise multiple inclusion of headers if they find the: #ifndef FOO #define FOO #endif pattern as the first thing inside a header. The single-header inclusion guard was preventing that from happening, so we need to move it inside the multiple inclusion guard.
Diffstat (limited to 'json-glib/json-parser.h')
-rw-r--r--json-glib/json-parser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/json-glib/json-parser.h b/json-glib/json-parser.h
index 894a80b..9988915 100644
--- a/json-glib/json-parser.h
+++ b/json-glib/json-parser.h
@@ -21,13 +21,13 @@
* Emmanuele Bassi <ebassi@linux.intel.com>
*/
+#ifndef __JSON_PARSER_H__
+#define __JSON_PARSER_H__
+
#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__
-
#include <glib-object.h>
#include <gio/gio.h>
#include <json-glib/json-types.h>