]> granicus.if.org Git - graphviz/commitdiff
Fix missing CoreText symbol in Leopard builds
authorGlen Low <glen.low@pixelglow.com>
Tue, 31 Dec 2013 00:18:53 +0000 (08:18 +0800)
committerGlen Low <glen.low@pixelglow.com>
Tue, 31 Dec 2013 00:18:53 +0000 (08:18 +0800)
plugin/quartz/gvtextlayout_quartz.c

index ec758660b25a75ceb4625f539e77e394d2921634..be69f72c833bcf454b105dd7a3f68d5f1815de86 100644 (file)
 
 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 || __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 30200
 
+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1060
+/* symbol defined in 10.5.x dylib but not in headers */
+extern const CFStringRef kCTForegroundColorFromContextAttributeName;
+#endif
+
 void *quartz_new_layout(char* fontname, double fontsize, char* text)
 {
        CFStringRef fontnameref = CFStringCreateWithBytes(kCFAllocatorDefault, (const UInt8 *)fontname, strlen(fontname), kCFStringEncodingUTF8, FALSE);