summarylogtreecommitdiffstats
path: root/0112-Adjust-Py_WINVER-for-our-Win-7-target.patch
diff options
context:
space:
mode:
Diffstat (limited to '0112-Adjust-Py_WINVER-for-our-Win-7-target.patch')
-rw-r--r--0112-Adjust-Py_WINVER-for-our-Win-7-target.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/0112-Adjust-Py_WINVER-for-our-Win-7-target.patch b/0112-Adjust-Py_WINVER-for-our-Win-7-target.patch
new file mode 100644
index 000000000000..945c86d7c51a
--- /dev/null
+++ b/0112-Adjust-Py_WINVER-for-our-Win-7-target.patch
@@ -0,0 +1,30 @@
+From 44f87e70a74f9acde6536373a37e0623020a07a5 Mon Sep 17 00:00:00 2001
+From: Christoph Reiter <reiter.christoph@gmail.com>
+Date: Fri, 23 Jul 2021 08:55:42 +0200
+Subject: [PATCH 112/N] Adjust Py_WINVER for our Win 7 target
+
+We support win7 still, so adjust accordingly.
+
+Should be merged into the win7 patch
+---
+ PC/pyconfig.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/PC/pyconfig.h b/PC/pyconfig.h
+index d7d3cf0..6e9c090 100644
+--- a/PC/pyconfig.h
++++ b/PC/pyconfig.h
+@@ -136,8 +136,8 @@ WIN32 is still required for the locale module.
+
+ /* set the version macros for the windows headers */
+ /* Python 3.9+ requires Windows 8 or greater */
+-#define Py_WINVER 0x0602 /* _WIN32_WINNT_WIN8 */
+-#define Py_NTDDI NTDDI_WIN8
++#define Py_WINVER 0x0601 /* _WIN32_WINNT_WIN7 */
++#define Py_NTDDI NTDDI_WIN7
+
+ /* We only set these values when building Python - we don't want to force
+ these values on extensions, as that will affect the prototypes and
+--
+2.32.0
+