summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Muizelaar <jmuizelaar@mozilla.com>2009-06-11 17:32:23 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-16 11:48:54 +0100
commit7a5f7b4a4b7ee8fe14ad6228d80c91e4f5951239 (patch)
treece4df6110156eb7bc5e0be4a7bca974e2e20fe2b /src
parentc21a9eecb0e1d383c0f4c8e554fbfac1daf0518b (diff)
Fix compilation on OS X when compiling for 64 bit
OS X doesn't support ATSUI in 64 bit so don't include the cairo ATSUI API in that case.
Diffstat (limited to 'src')
-rw-r--r--src/cairo-quartz-font.c3
-rw-r--r--src/cairo-quartz.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/cairo-quartz-font.c b/src/cairo-quartz-font.c
index 2bca3720..94cc327d 100644
--- a/src/cairo-quartz-font.c
+++ b/src/cairo-quartz-font.c
@@ -798,7 +798,7 @@ _cairo_quartz_scaled_font_get_cg_font_ref (cairo_scaled_font_t *abstract_font)
return ffont->cgFont;
}
-
+#ifndef __LP64__
/*
* compat with old ATSUI backend
*/
@@ -838,3 +838,4 @@ cairo_atsui_font_face_create_for_atsu_font_id (ATSUFontID font_id)
{
return cairo_quartz_font_face_create_for_atsu_font_id (font_id);
}
+#endif
diff --git a/src/cairo-quartz.h b/src/cairo-quartz.h
index 769b29f4..bf89cd9f 100644
--- a/src/cairo-quartz.h
+++ b/src/cairo-quartz.h
@@ -66,8 +66,10 @@ cairo_quartz_surface_get_cg_context (cairo_surface_t *surface);
cairo_public cairo_font_face_t *
cairo_quartz_font_face_create_for_cgfont (CGFontRef font);
+#ifndef __LP64__
cairo_public cairo_font_face_t *
cairo_quartz_font_face_create_for_atsu_font_id (ATSUFontID font_id);
+#endif
#endif /* CAIRO_HAS_QUARTZ_FONT */