[cairo-bugs] [Bug 39493] New: 32-bit build fails with MacOSX10.7.sdk

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 23 10:36:21 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=39493

           Summary: 32-bit build fails with MacOSX10.7.sdk
           Product: cairo
           Version: 1.10.3
          Platform: Other
        OS/Version: Mac OS X (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: quartz font backend
        AssignedTo: vladimir at pobox.com
        ReportedBy: jralls at ceridwen.us
         QAContact: cairo-bugs at cairographics.org


Lion no longer includes the old 32-bit-only functions, so the ATSUI
compatibility functions need an extra term in the #if:
  CC     cairo-quartz-font.lo
cairo-quartz-font.c: In function
‘cairo_quartz_font_face_create_for_atsu_font_id’:
cairo-quartz-font.c:826: error: implicit declaration of function
‘FMGetATSFontRefFromFont’
cairo-quartz-font.c:826: warning: nested extern declaration of
‘FMGetATSFontRefFromFont’


diff --git a/src/cairo-quartz-font.c b/src/cairo-quartz-font.c
index f529fc9..5ba3e1a 100644
--- a/src/cairo-quartz-font.c
+++ b/src/cairo-quartz-font.c
@@ -802,7 +802,7 @@ _cairo_quartz_scaled_font_get_cg_font_ref
(cairo_scaled_font_t *abstract_font)
     return ffont->cgFont;
 }

-#ifndef __LP64__
+#if !defined __LP64__ && MAC_OS_X_VERSION_MAX_ALLOWED == MAC_OS_X_VERSION_10_6
 /*
  * compat with old ATSUI backend
  */

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list