aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ports/SkTypeface_mac.h
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2015-06-08 17:47:06 -0400
committerGravatar bungeman <bungeman@google.com>2015-06-08 17:47:06 -0400
commitd6e9fc7f1f7affe1314fc0fbc3d357732c38ca11 (patch)
tree13c60d25fbfd5c8f654d8599695a07731989e243 /include/ports/SkTypeface_mac.h
parent1b5f25c5d75f4a992ce3eff1d12afa775f580954 (diff)
Restore support for 10.6 SDK in header.
Must use ApplicationServices, can't use CoreText directly.
Diffstat (limited to 'include/ports/SkTypeface_mac.h')
-rw-r--r--include/ports/SkTypeface_mac.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ports/SkTypeface_mac.h b/include/ports/SkTypeface_mac.h
index 000c7baa89..59bf77b106 100644
--- a/include/ports/SkTypeface_mac.h
+++ b/include/ports/SkTypeface_mac.h
@@ -11,7 +11,14 @@
#include "SkTypeface.h"
#include <CoreFoundation/CoreFoundation.h>
+
+#ifdef SK_BUILD_FOR_MAC
+#import <ApplicationServices/ApplicationServices.h>
+#endif
+
+#ifdef SK_BUILD_FOR_IOS
#include <CoreText/CoreText.h>
+#endif
/**
* Like the other Typeface create methods, this returns a new reference to the