MINGW-packages/mingw-w64-python/0060-configure.ac-set-_WIN32_WINNT-version.patch
2025-10-10 14:31:04 +02:00

26 lines
678 B
Diff

From 9ec9f0c5a7bc9d63913414430187ae56344c954b Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Sun, 1 Aug 2021 15:18:50 +0200
Subject: [PATCH 060/N] configure.ac: set _WIN32_WINNT version
---
configure.ac | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure.ac b/configure.ac
index d3b8dbf..d6e8604 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4597,6 +4597,11 @@ done
IFS=$as_save_IFS
AC_MSG_RESULT([$DBM_CFLAGS $DBM_LIBS])
+case $host in
+ *-*-mingw*)
+ CFLAGS_NODIST="$CFLAGS_NODIST -D_WIN32_WINNT=0x0602";;
+esac
+
# Determine if windows modules should be used.
AC_SUBST(USE_WIN32_MODULE)
USE_WIN32_MODULE='#'