aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkFontHost_mac_coretext.cpp
diff options
context:
space:
mode:
authorGravatar george@mozilla.com <george@mozilla.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-13 17:55:34 +0000
committerGravatar george@mozilla.com <george@mozilla.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-13 17:55:34 +0000
commitca0ec4c65a83b0ac6e9093d519d36539fc8fdf19 (patch)
tree10b0df55c152cdea45d5e2e198279cbb372334ec /src/ports/SkFontHost_mac_coretext.cpp
parente04e92b19f050892c2770da955e4c931e0ef698b (diff)
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
Diffstat (limited to 'src/ports/SkFontHost_mac_coretext.cpp')
-rw-r--r--src/ports/SkFontHost_mac_coretext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ports/SkFontHost_mac_coretext.cpp b/src/ports/SkFontHost_mac_coretext.cpp
index 40e73a2305..3cd334358b 100644
--- a/src/ports/SkFontHost_mac_coretext.cpp
+++ b/src/ports/SkFontHost_mac_coretext.cpp
@@ -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) {