1diff --git a/third_party/zlib/contrib/minizip/iowin32.c b/third_party/zlib/contrib/minizip/iowin32.c 2index 246ceb91a139..c6bc314b3c28 100644 3--- a/third_party/zlib/contrib/minizip/iowin32.c 4+++ b/third_party/zlib/contrib/minizip/iowin32.c 5@@ -31,14 +31,12 @@ 6 #define _WIN32_WINNT 0x601 7 #endif 8 9-#if _WIN32_WINNT >= _WIN32_WINNT_WIN8 10-// see Include/shared/winapifamily.h in the Windows Kit 11-#if defined(WINAPI_FAMILY_PARTITION) && (!(defined(IOWIN32_USING_WINRT_API))) 12-#if WINAPI_FAMILY_ONE_PARTITION(WINAPI_FAMILY, WINAPI_PARTITION_APP) 13+#if !defined(IOWIN32_USING_WINRT_API) 14+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) 15+// Windows Store or Universal Windows Platform 16 #define IOWIN32_USING_WINRT_API 1 17 #endif 18 #endif 19-#endif 20 21 voidpf ZCALLBACK win32_open_file_func OF((voidpf opaque, const char* filename, int mode)); 22 uLong ZCALLBACK win32_read_file_func OF((voidpf opaque, voidpf stream, void* buf, uLong size)); 23