From: Glen Low Date: Tue, 31 Dec 2013 00:18:53 +0000 (+0800) Subject: Fix missing CoreText symbol in Leopard builds X-Git-Tag: 2.38.0~125^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26882817bd088be810ef0b6ad7417aa947d98b52;p=graphviz Fix missing CoreText symbol in Leopard builds --- diff --git a/plugin/quartz/gvtextlayout_quartz.c b/plugin/quartz/gvtextlayout_quartz.c index ec758660b..be69f72c8 100644 --- a/plugin/quartz/gvtextlayout_quartz.c +++ b/plugin/quartz/gvtextlayout_quartz.c @@ -27,6 +27,11 @@ #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);