summaryrefslogtreecommitdiff
path: root/src/cairo-atomic-private.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-09-19 17:17:03 -0400
committerBehdad Esfahbod <behdad@behdad.org>2008-09-19 17:19:10 -0400
commitd84752605a4aee96fa872a97a50e59a44ee7051a (patch)
treeee5f1eac2401cf1e381a6921a2f932bd0db6112e /src/cairo-atomic-private.h
parenteb89bf049a4c2ab0946c45a1277bfd8b1519efa1 (diff)
downloadcairo-d84752605a4aee96fa872a97a50e59a44ee7051a.tar.gz
Make sure (and check) that all private headers include some cairo header first
The macros CAIRO_BEGIN_DECLS and CAIRO_END_DECLS are declared in two places: config.h and cairo.h. On Win32 build there is no config.h. So, we can't rely on pulling CAIRO_BEGIN_DECLS from there. Hence, we now: * Not add those declarations to config.h anymore, * Test that every cairo private header includes some other cairo header before any other includes. These two are fairly enough to ensure that cairo.h is seen from all private headers. There's still the case of headers not including any header file at all. I'll fix that later.
Diffstat (limited to 'src/cairo-atomic-private.h')
-rw-r--r--src/cairo-atomic-private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-atomic-private.h b/src/cairo-atomic-private.h
index 56ae7d2a2..fb5e60def 100644
--- a/src/cairo-atomic-private.h
+++ b/src/cairo-atomic-private.h
@@ -37,12 +37,12 @@
#ifndef CAIRO_ATOMIC_PRIVATE_H
#define CAIRO_ATOMIC_PRIVATE_H
+# include "cairo-compiler-private.h"
+
#if HAVE_CONFIG_H
#include "config.h"
#endif
-# include "cairo-compiler-private.h"
-
CAIRO_BEGIN_DECLS
#if HAVE_INTEL_ATOMIC_PRIMITIVES