Move header inclusion guard at the top

GCC has some optimization for the inclusion guard, but they only work if
the check is the outermost one.

We're fairly inconsistent because of historical reasons, so we should
ensure that we follow the same pattern in every public header.
This commit is contained in:
Emmanuele Bassi
2015-07-07 15:51:13 +01:00
parent cffa243fbe
commit 02b69e4d76
71 changed files with 214 additions and 210 deletions

View File

@ -22,13 +22,13 @@
* Emmanuele Bassi <ebassi@linux.intel.com>
*/
#ifndef __CLUTTER_CANVAS_H__
#define __CLUTTER_CANVAS_H__
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <clutter/clutter.h> can be included directly."
#endif
#ifndef __CLUTTER_CANVAS_H__
#define __CLUTTER_CANVAS_H__
#include <clutter/clutter-types.h>
G_BEGIN_DECLS