diff options
author | bungeman <bungeman@google.com> | 2015-06-08 17:47:06 -0400 |
---|---|---|
committer | bungeman <bungeman@google.com> | 2015-06-08 17:47:06 -0400 |
commit | d6e9fc7f1f7affe1314fc0fbc3d357732c38ca11 (patch) | |
tree | 13c60d25fbfd5c8f654d8599695a07731989e243 | |
parent | 1b5f25c5d75f4a992ce3eff1d12afa775f580954 (diff) |
Restore support for 10.6 SDK in header.
Must use ApplicationServices, can't use CoreText directly.
-rw-r--r-- | include/ports/SkTypeface_mac.h | 7 |
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 |