Index: src/utils/win/SkDWrite.h |
diff --git a/src/utils/win/SkDWrite.h b/src/utils/win/SkDWrite.h |
index a7799921d23fb107a6059e72e360551e3882afe8..5b566730e5db6a24ecd6eda4a2bcdcc80d471c82 100644 |
--- a/src/utils/win/SkDWrite.h |
+++ b/src/utils/win/SkDWrite.h |
@@ -11,12 +11,17 @@ |
#include "SkTemplates.h" |
#include <dwrite.h> |
+#include <winsdkver.h> |
class SkString; |
//////////////////////////////////////////////////////////////////////////////// |
// Factory |
+#ifndef SK_HAS_DWRITE_1_H |
+#define SK_HAS_DWRITE_1_H (WINVER_MAXVER >= 0x0602) |
+#endif |
+ |
IDWriteFactory* sk_get_dwrite_factory(); |
//////////////////////////////////////////////////////////////////////////////// |