diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2013-12-04 12:41:06 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2013-12-04 12:41:06 +0000 |
commit | 0de776ea67869b692ee8bd709fd70c0e2368d9fc (patch) | |
tree | 5a9e66aa86a5d97c554e58f29dc8d20d53a72a0d /json-glib/json-types.h | |
parent | b3072da5a2e897b2b87f84d30485bf316c4476fb (diff) | |
download | json-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-types.h')
-rw-r--r-- | json-glib/json-types.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/json-glib/json-types.h b/json-glib/json-types.h index 3f7ff52..366d0df 100644 --- a/json-glib/json-types.h +++ b/json-glib/json-types.h @@ -21,13 +21,13 @@ * Emmanuele Bassi <ebassi@linux.intel.com> */ +#ifndef __JSON_TYPES_H__ +#define __JSON_TYPES_H__ + #if !defined(__JSON_GLIB_INSIDE__) && !defined(JSON_COMPILATION) #error "Only <json-glib/json-glib.h> can be included directly." #endif -#ifndef __JSON_TYPES_H__ -#define __JSON_TYPES_H__ - #include <glib-object.h> G_BEGIN_DECLS |