mirror of
https://github.com/nodejs/node.git
synced 2024-11-28 14:33:11 +01:00
70a05103c8
PR-URL: https://github.com/nodejs/node/pull/52123 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
28 lines
942 B
Diff
28 lines
942 B
Diff
diff --git a/third_party/zlib/contrib/minizip/iowin32.c b/third_party/zlib/contrib/minizip/iowin32.c
|
|
index bbd7773e67146..3f6867fd7e40b 100644
|
|
--- a/third_party/zlib/contrib/minizip/iowin32.c
|
|
+++ b/third_party/zlib/contrib/minizip/iowin32.c
|
|
@@ -30,19 +30,12 @@
|
|
#define _WIN32_WINNT 0x601
|
|
#endif
|
|
|
|
-#if _WIN32_WINNT >= _WIN32_WINNT_WIN8
|
|
-// see Include/shared/winapifamily.h in the Windows Kit
|
|
-#if defined(WINAPI_FAMILY_PARTITION) && (!(defined(IOWIN32_USING_WINRT_API)))
|
|
-
|
|
-#if !defined(WINAPI_FAMILY_ONE_PARTITION)
|
|
-#define WINAPI_FAMILY_ONE_PARTITION(PartitionSet, Partition) ((WINAPI_FAMILY & PartitionSet) == Partition)
|
|
-#endif
|
|
-
|
|
-#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)
|
|
+// Windows Store or Universal Windows Platform
|
|
#define IOWIN32_USING_WINRT_API 1
|
|
#endif
|
|
#endif
|
|
-#endif
|
|
|
|
typedef struct
|
|
{
|