diff options
author | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-06-11 17:32:23 -0400 |
---|---|---|
committer | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-06-11 17:32:23 -0400 |
commit | 13b56c42bfdb9ad36f9b1bd22f83d7ef3a074ddc (patch) | |
tree | d7cdf5db866e3db81ba2fde7eeef1dd1a8c94059 | |
parent | 9e3019ef987f8d3ad424c13ffae5a15b08beb327 (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.
-rw-r--r-- | src/cairo-quartz-font.c | 3 | ||||
-rw-r--r-- | src/cairo-quartz.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/cairo-quartz-font.c b/src/cairo-quartz-font.c index a800cb443..91c16545e 100644 --- a/src/cairo-quartz-font.c +++ b/src/cairo-quartz-font.c @@ -749,7 +749,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 */ @@ -789,3 +789,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 769b29f48..bf89cd9fa 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 */ |