summaryrefslogtreecommitdiff
path: root/src/cairo-atomic-private.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-09-20 17:20:36 -0400
committerBehdad Esfahbod <behdad@behdad.org>2008-09-20 17:20:36 -0400
commitfee72c26afff2120315ebbab32708520307e7a5e (patch)
treed9d09053fdaec65c3c54692a875490579460ef6f /src/cairo-atomic-private.h
parente00565fa3c9579566abb31b71af3f13f44c45139 (diff)
downloadcairo-fee72c26afff2120315ebbab32708520307e7a5e.tar.gz
Make sure feature macros are checked using #if, not #ifdef; add a test for it
This is more robust to cases where people want to assign 0 to those variables. (win32/alternate build systems, etc)
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 fb5e60def..2914a0221 100644
--- a/src/cairo-atomic-private.h
+++ b/src/cairo-atomic-private.h
@@ -47,7 +47,7 @@ CAIRO_BEGIN_DECLS
#if HAVE_INTEL_ATOMIC_PRIMITIVES
-#define CAIRO_HAS_ATOMIC_OPS 1
+#define HAS_ATOMIC_OPS 1
typedef int cairo_atomic_int_t;
@@ -58,7 +58,7 @@ typedef int cairo_atomic_int_t;
#endif
-#ifndef CAIRO_HAS_ATOMIC_OPS
+#ifndef HAS_ATOMIC_OPS
typedef int cairo_atomic_int_t;