From 26882817bd088be810ef0b6ad7417aa947d98b52 Mon Sep 17 00:00:00 2001 From: Glen Low Date: Tue, 31 Dec 2013 08:18:53 +0800 Subject: [PATCH] Fix missing CoreText symbol in Leopard builds --- plugin/quartz/gvtextlayout_quartz.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.40.0