freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2] * builds/windows/ftsystem.c: Correctly detect UWP


From: Erin Melucci
Subject: [PATCH v2] * builds/windows/ftsystem.c: Correctly detect UWP
Date: Fri, 17 May 2024 16:13:48 +0200

This is not the proper way to detect API availability but it's the 
least-distuprive change possible to fix building for the GDK (Microsoft Store 
for games, Xbox).
---

Changes since v1:
* Added missing backslash

---

builds/windows/ftsystem.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/builds/windows/ftsystem.c b/builds/windows/ftsystem.c
index 3a56834f6..f8b7126ad 100644
--- a/builds/windows/ftsystem.c
+++ b/builds/windows/ftsystem.c
@@ -197,7 +197,8 @@
 
 
   /* non-desktop Universal Windows Platform */
-#if defined( WINAPI_FAMILY ) && WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP
+#if defined( WINAPI_FAMILY ) && WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP \
+  && WINAPI_FAMILY != WINAPI_FAMILY_GAMES
 
 #define PACK_DWORD64( hi, lo )  ( ( (DWORD64)(hi) << 32 ) | (DWORD)(lo) )
 
-- 
2.44.0.windows.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]