diff --git a/BUILD.gn b/BUILD.gn index 76f2a393d0..45525a9ea2 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -96,7 +96,7 @@ config("skia_private") { 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 46cb3f147c..e5641a6099 100644 --- a/src/xps/SkXPSDevice.cpp +++ b/src/xps/SkXPSDevice.cpp @@ -319,7 +319,7 @@ bool SkXPSDevice::endSheet() { 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.