aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ports
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-12-01 09:02:49 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-01 09:02:49 -0800
commit0cbe7ee765cf72f15e6ca10b308676aa077fb3e2 (patch)
treefb6c06bbf5b34e9bc72cb5b659ccd8ce46de3700 /include/ports
parent9323dc6a72de301f23e1187adc2365395b4b23d8 (diff)
CMake, include/: changes to make fiddle 2.0 better
cmake: remove unused directories from skia.h / ${public_includes} SkPreConfig.h: work around buggy `#ifdef linux` include: guard many platform-specific headers CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac10.9-Clang-x86_64-Release-CMake-Trybot Review URL: https://codereview.chromium.org/1488813002
Diffstat (limited to 'include/ports')
-rw-r--r--include/ports/SkTypeface_mac.h5
-rw-r--r--include/ports/SkTypeface_win.h5
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