From 0de776ea67869b692ee8bd709fd70c0e2368d9fc Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 4 Dec 2013 12:41:06 +0000 Subject: 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. --- json-glib/json-path.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'json-glib/json-path.h') diff --git a/json-glib/json-path.h b/json-glib/json-path.h index 2bae608..6a30932 100644 --- a/json-glib/json-path.h +++ b/json-glib/json-path.h @@ -20,13 +20,13 @@ * Emmanuele Bassi */ +#ifndef __JSON_PATH_H__ +#define __JSON_PATH_H__ + #if !defined(__JSON_GLIB_INSIDE__) && !defined(JSON_COMPILATION) #error "Only can be included directly." #endif -#ifndef __JSON_PATH_H__ -#define __JSON_PATH_H__ - #include G_BEGIN_DECLS -- cgit v1.2.1