summaryrefslogtreecommitdiff
path: root/src/cairo-mutex-private.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2007-05-01 19:24:26 -0400
committerBehdad Esfahbod <behdad@behdad.org>2007-05-01 19:24:26 -0400
commite87a25dc7c73a44b0cdfc4ef368736e7f77fb522 (patch)
tree6995c20db0e631d47c7942a576f4f2afe6e7dd4a /src/cairo-mutex-private.h
parent1a33e44aa5d73f568c4164c41f9595964e9f1bbb (diff)
downloadcairo-e87a25dc7c73a44b0cdfc4ef368736e7f77fb522.tar.gz
[cairo-mutex] Fix usage of CAIRO_MUTEX_DECLARE()
Previously cairo-mutex.c was abusing cairo-mutex-private.h by defining CAIRO_MUTEX_DECLARE before including it, and cairo-mutex-private.h was simply not overriding any available CAIRO_MUTEX_DECLARE. This is not the way it should be. cairo-mutex.c should instead define CAIRO_MUTEX_DECLARE and include cairo-mutex-list-private.h for itself.
Diffstat (limited to 'src/cairo-mutex-private.h')
-rw-r--r--src/cairo-mutex-private.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cairo-mutex-private.h b/src/cairo-mutex-private.h
index 9e058ff43..ed89ef51b 100644
--- a/src/cairo-mutex-private.h
+++ b/src/cairo-mutex-private.h
@@ -62,9 +62,7 @@
CAIRO_BEGIN_DECLS
-#ifndef CAIRO_MUTEX_DECLARE
-#define CAIRO_MUTEX_DECLARE(mutex) extern cairo_mutex_t mutex;
-#endif
+#define CAIRO_MUTEX_DECLARE(mutex) extern cairo_mutex_t mutex
#include "cairo-mutex-list-private.h"
#undef CAIRO_MUTEX_DECLARE