summaryrefslogtreecommitdiff
path: root/src/cairo-mutex-private.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2007-05-01 00:48:33 -0400
committerBehdad Esfahbod <behdad@behdad.org>2007-05-01 19:20:06 -0400
commitb5f015f21f3c800919a85f03a081a3ec1648a794 (patch)
tree46c285314ebf59ea7f3af68febc73dc4fd5a2900 /src/cairo-mutex-private.h
parentb0a0a1779dc5cc16423473b6d80ee5099793a47f (diff)
[cairo-mutex] Make sure mutex implementation declares enough macros
We have defaults for the rest.
Diffstat (limited to 'src/cairo-mutex-private.h')
-rw-r--r--src/cairo-mutex-private.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cairo-mutex-private.h b/src/cairo-mutex-private.h
index c0a8a37f..9e058ff4 100644
--- a/src/cairo-mutex-private.h
+++ b/src/cairo-mutex-private.h
@@ -49,6 +49,17 @@
#include "cairo-mutex-type-private.h"
+/* Only the following three are mandatory at this point */
+#ifndef CAIRO_MUTEX_LOCK
+# error "CAIRO_MUTEX_LOCK not defined. Check cairo-mutex-type-private.h."
+#endif
+#ifndef CAIRO_MUTEX_UNLOCK
+# error "CAIRO_MUTEX_UNLOCK not defined. Check cairo-mutex-type-private.h."
+#endif
+#ifndef CAIRO_MUTEX_NIL_INITIALIZER
+# error "CAIRO_MUTEX_NIL_INITIALIZER not defined. Check cairo-mutex-type-private.h."
+#endif
+
CAIRO_BEGIN_DECLS
#ifndef CAIRO_MUTEX_DECLARE