Check if SK_BUILD_FOR_MAC is defined rather than whether it's 1
git-svn-id: http://skia.googlecode.com/svn/trunk@5532 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
e04e92b19f
commit
ca0ec4c65a
@ -365,7 +365,7 @@ static SkFontID CTFontRef_to_SkFontID(CTFontRef fontRef) {
|
||||
SkFontID id = 0;
|
||||
// CTFontGetPlatformFont and ATSFontRef are not supported on iOS, so we have to
|
||||
// bracket this to be Mac only.
|
||||
#if SK_BUILD_FOR_MAC
|
||||
#ifdef SK_BUILD_FOR_MAC
|
||||
ATSFontRef ats = CTFontGetPlatformFont(fontRef, NULL);
|
||||
id = (SkFontID)ats;
|
||||
if (id != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user