diff options
Diffstat (limited to 'include/ports')
-rw-r--r-- | include/ports/SkTypeface_mac.h | 5 | ||||
-rw-r--r-- | include/ports/SkTypeface_win.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/ports/SkTypeface_mac.h b/include/ports/SkTypeface_mac.h index 59bf77b106..14440b5383 100644 --- a/include/ports/SkTypeface_mac.h +++ b/include/ports/SkTypeface_mac.h @@ -10,6 +10,8 @@ #include "SkTypeface.h" +#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) + #include <CoreFoundation/CoreFoundation.h> #ifdef SK_BUILD_FOR_MAC @@ -43,4 +45,5 @@ SK_API extern SkTypeface* SkCreateTypefaceFromCTFont(CTFontRef, CFTypeRef = NULL */ SK_API extern CTFontRef SkTypeface_GetCTFontRef(const SkTypeface* face); -#endif +#endif // defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) +#endif // SkTypeface_mac_DEFINED diff --git a/include/ports/SkTypeface_win.h b/include/ports/SkTypeface_win.h index 07752d82f9..b7373986c9 100644 --- a/include/ports/SkTypeface_win.h +++ b/include/ports/SkTypeface_win.h @@ -10,6 +10,8 @@ #include "SkTypeface.h" +#ifdef SK_BUILD_FOR_WIN + /** * Like the other Typeface create methods, this returns a new reference to the * corresponding typeface for the specified logfont. The caller is responsible @@ -58,4 +60,5 @@ SK_API SkFontMgr* SkFontMgr_New_DirectWriteRenderer(SkRemotableFontMgr*); */ SK_API SkRemotableFontMgr* SkRemotableFontMgr_New_DirectWrite(); -#endif +#endif // SK_BUILD_FOR_WIN +#endif // SkTypeface_win_DEFINED |