From c7e1158de76bb61444f00f95089f365ea6f2d1f8 Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Tue, 17 Mar 2020 09:01:14 -0400 Subject: [PATCH] Fix UWP detection in iowin32.c. Use WINAPI_FAMILY instead of WINAPI_FAMILY_PARTITION. Fixes #480 --- contrib/minizip/iowin32.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/minizip/iowin32.c b/contrib/minizip/iowin32.c index 274f39eb1..f8d377c57 100644 --- a/contrib/minizip/iowin32.c +++ b/contrib/minizip/iowin32.c @@ -26,9 +26,8 @@ #endif -// see Include/shared/winapifamily.h in the Windows Kit -#if defined(WINAPI_FAMILY_PARTITION) && (!(defined(IOWIN32_USING_WINRT_API))) -#if WINAPI_FAMILY_ONE_PARTITION(WINAPI_FAMILY, WINAPI_PARTITION_APP) +#if !defined(IOWIN32_USING_WINRT_API) +#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) #define IOWIN32_USING_WINRT_API 1 #endif #endif