Commit ed4d0710f14878b51ce1885e0f3221e2d6d97a5a

Alexei Podtelezhnikov 2022-04-25T19:05:11

[builds/windows] Simplify non-desktop UWP check. Fixes mingw compilation described in !159. * builds/windows/ftsystem.c: Do not use WINAPI_FAMILY_PARTITION macro.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/builds/windows/ftsystem.c b/builds/windows/ftsystem.c
index 4f4ac15..6557cea 100644
--- a/builds/windows/ftsystem.c
+++ b/builds/windows/ftsystem.c
@@ -197,8 +197,7 @@
 
 
   /* non-desktop Universal Windows Platform */
-#if defined( WINAPI_FAMILY_PARTITION )                 && \
-    !WINAPI_FAMILY_PARTITION( WINAPI_PARTITION_DESKTOP )
+#if defined( WINAPI_FAMILY ) && WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP
 
 #define PACK_DWORD64( hi, lo )  ( ( (DWORD64)(hi) << 32 ) | (DWORD)(lo) )