summaryrefslogtreecommitdiff
path: root/src/cairo-reference-count-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-reference-count-private.h
parenteb89bf049a4c2ab0946c45a1277bfd8b1519efa1 (diff)
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-reference-count-private.h')
-rw-r--r--src/cairo-reference-count-private.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/cairo-reference-count-private.h b/src/cairo-reference-count-private.h
index 8dbc1abc..d6adaad9 100644
--- a/src/cairo-reference-count-private.h
+++ b/src/cairo-reference-count-private.h
@@ -37,14 +37,8 @@
#ifndef CAIRO_REFRENCE_COUNT_PRIVATE_H
#define CAIRO_REFRENCE_COUNT_PRIVATE_H
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#include "cairo-atomic-private.h"
-CAIRO_BEGIN_DECLS
-
/* Encapsulate operations on the object's reference count */
typedef struct {
cairo_atomic_int_t ref_count;
@@ -65,6 +59,4 @@ typedef struct {
#define CAIRO_REFERENCE_COUNT_HAS_REFERENCE(RC) (CAIRO_REFERENCE_COUNT_GET_VALUE (RC) > 0)
-CAIRO_END_DECLS
-
#endif