11cb0ef41Sopenharmony_cidiff --git a/third_party/zlib/contrib/minizip/iowin32.c b/third_party/zlib/contrib/minizip/iowin32.c
21cb0ef41Sopenharmony_ciindex 246ceb91a139..c6bc314b3c28 100644
31cb0ef41Sopenharmony_ci--- a/third_party/zlib/contrib/minizip/iowin32.c
41cb0ef41Sopenharmony_ci+++ b/third_party/zlib/contrib/minizip/iowin32.c
51cb0ef41Sopenharmony_ci@@ -31,14 +31,12 @@
61cb0ef41Sopenharmony_ci #define _WIN32_WINNT 0x601
71cb0ef41Sopenharmony_ci #endif
81cb0ef41Sopenharmony_ci 
91cb0ef41Sopenharmony_ci-#if _WIN32_WINNT >= _WIN32_WINNT_WIN8
101cb0ef41Sopenharmony_ci-// see Include/shared/winapifamily.h in the Windows Kit
111cb0ef41Sopenharmony_ci-#if defined(WINAPI_FAMILY_PARTITION) && (!(defined(IOWIN32_USING_WINRT_API)))
121cb0ef41Sopenharmony_ci-#if WINAPI_FAMILY_ONE_PARTITION(WINAPI_FAMILY, WINAPI_PARTITION_APP)
131cb0ef41Sopenharmony_ci+#if !defined(IOWIN32_USING_WINRT_API)
141cb0ef41Sopenharmony_ci+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
151cb0ef41Sopenharmony_ci+// Windows Store or Universal Windows Platform
161cb0ef41Sopenharmony_ci #define IOWIN32_USING_WINRT_API 1
171cb0ef41Sopenharmony_ci #endif
181cb0ef41Sopenharmony_ci #endif
191cb0ef41Sopenharmony_ci-#endif
201cb0ef41Sopenharmony_ci 
211cb0ef41Sopenharmony_ci voidpf  ZCALLBACK win32_open_file_func  OF((voidpf opaque, const char* filename, int mode));
221cb0ef41Sopenharmony_ci uLong   ZCALLBACK win32_read_file_func  OF((voidpf opaque, voidpf stream, void* buf, uLong size));
23