]> wimlib.net Git - wimlib/commitdiff
Explicitly define _WIN32_WINNT
authorEric Biggers <ebiggers3@gmail.com>
Mon, 20 Mar 2023 03:59:16 +0000 (20:59 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 20 Mar 2023 03:59:16 +0000 (20:59 -0700)
Explicitly define _WIN32_WINNT to correspond to the minimum Windows
version we are supporting (currently Windows Vista).

configure.ac

index 8c77b2eb55c0a454bc628bcb093f9ebcbaa41cfd..afeffd8ce86772cb36c628e95ebe424a8afc5716 100644 (file)
@@ -36,7 +36,7 @@ mingw*)
        # Native Windows
        WINDOWS_NATIVE_BUILD="yes"
        # -D__MINGW_USE_VC2005_COMPAT: make time_t 64-bit on 32-bit Windows.
-       PLATFORM_CPPFLAGS="-D_POSIX -D_POSIX_THREAD_SAFE_FUNCTIONS -DUNICODE -D_UNICODE -D_CRT_NON_CONFORMING_SWPRINTFS -D__MINGW_USE_VC2005_COMPAT"
+       PLATFORM_CPPFLAGS="-D_POSIX -D_POSIX_THREAD_SAFE_FUNCTIONS -DUNICODE -D_UNICODE -D_CRT_NON_CONFORMING_SWPRINTFS -D__MINGW_USE_VC2005_COMPAT -D_WIN32_WINNT=0x0600"
        PLATFORM_CFLAGS="-municode -mno-ms-bitfields"
        PLATFORM_LDFLAGS="-no-undefined"
        WITH_NTFS_3G_DEFAULT="no"