Update iowin32.c

Proposed fix for issue "zlib 1.2.8 always uses Windows 8 - level API" #49.

The code is trying to define IOWIN32_USING_WINRT_API if and only if the target is a Metro app, by using the test:

#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
However, that will be true for both desktop and Metro applications. To test for only Metro applications, and not desktop applications, the following will work:

#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
pull/77/head
DanKonigsbach 11 years ago
parent 5089329162
commit 8e3ae5ccbd
  1. 2
      contrib/minizip/iowin32.c

@ -27,7 +27,7 @@
#if defined(WINAPI_FAMILY_PARTITION) && (!(defined(IOWIN32_USING_WINRT_API)))
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#define IOWIN32_USING_WINRT_API 1
#endif
#endif

Loading…
Cancel
Save