Fix type in Issue 11102: Add support for UWP compilation target
Bug: skia:11102
Change-Id: I03edc6fb10db6d8f3d160ba34dac3352027ee532
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/370226
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 76f2a39..45525a9 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -96,7 +96,7 @@
config("skia_winuwp") {
if (skia_enable_winuwp) {
- defines = [ "WINUWP" ]
+ defines = [ "SK_WINUWP" ]
}
}
diff --git a/src/xps/SkXPSDevice.cpp b/src/xps/SkXPSDevice.cpp
index 46cb3f1..e5641a6 100644
--- a/src/xps/SkXPSDevice.cpp
+++ b/src/xps/SkXPSDevice.cpp
@@ -319,7 +319,7 @@
static HRESULT subset_typeface(const SkXPSDevice::TypefaceUse& current) {
//The CreateFontPackage API is only supported on desktop, not in UWP
- #ifdef SK_WINUWP
+ #if defined(SK_WINUWP)
return E_NOTIMPL;
#else
//CreateFontPackage wants unsigned short.