summaryrefslogtreecommitdiff
path: root/src/cairo-quartz.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-quartz.h
parente00565fa3c9579566abb31b71af3f13f44c45139 (diff)
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-quartz.h')
-rw-r--r--src/cairo-quartz.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-quartz.h b/src/cairo-quartz.h
index d34cca6c..769b29f4 100644
--- a/src/cairo-quartz.h
+++ b/src/cairo-quartz.h
@@ -57,12 +57,12 @@ cairo_quartz_surface_create_for_cg_context (CGContextRef cgContext,
cairo_public CGContextRef
cairo_quartz_surface_get_cg_context (cairo_surface_t *surface);
+#if CAIRO_HAS_QUARTZ_FONT
+
/*
* Quartz font support
*/
-#ifdef CAIRO_HAS_QUARTZ_FONT
-
cairo_public cairo_font_face_t *
cairo_quartz_font_face_create_for_cgfont (CGFontRef font);