Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1044)

Unified Diff: src/ports/SkTypeface_win_dw.cpp

Issue 1411283005: Start making all .cpp files compile-able on all platforms. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: conditional on expat Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/ports/SkTypeface_win_dw.cpp
diff --git a/src/ports/SkTypeface_win_dw.cpp b/src/ports/SkTypeface_win_dw.cpp
index 144d4c7367bdaa77586478367e1730fef59ef9bf..38d09e85ecf25a0aaeeef023a2f7d16495b5637c 100644
--- a/src/ports/SkTypeface_win_dw.cpp
+++ b/src/ports/SkTypeface_win_dw.cpp
@@ -6,6 +6,8 @@
*/
#include "SkTypes.h"
+#if defined(SK_BUILD_FOR_WIN32)
+
// SkTypes will include Windows.h, which will pull in all of the GDI defines.
// GDI #defines GetGlyphIndices to GetGlyphIndicesA or GetGlyphIndicesW, but
// IDWriteFontFace has a method called GetGlyphIndices. Since this file does
@@ -459,3 +461,4 @@ SkAdvancedTypefaceMetrics* DWriteFontTypeface::onGetAdvancedTypefaceMetrics(
return info;
}
+#endif//defined(SK_BUILD_FOR_WIN32)

Powered by Google App Engine
This is Rietveld 408576698