]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-124487: Update Windows API version to Windows 8.1 (#124676)
authorSteve Dower <steve.dower@python.org>
Fri, 27 Sep 2024 18:35:32 +0000 (19:35 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Sep 2024 18:35:32 +0000 (11:35 -0700)
gh-124487: Update Windows API version to Windows 8.1

Misc/NEWS.d/next/Build/2024-09-27-15-58-10.gh-issue-124487.PAZTQf.rst [new file with mode: 0644]
PC/pyconfig.h

diff --git a/Misc/NEWS.d/next/Build/2024-09-27-15-58-10.gh-issue-124487.PAZTQf.rst b/Misc/NEWS.d/next/Build/2024-09-27-15-58-10.gh-issue-124487.PAZTQf.rst
new file mode 100644 (file)
index 0000000..0ffadb2
--- /dev/null
@@ -0,0 +1,2 @@
+Windows builds now use Windows 8.1 as their API baseline (installation
+already required Windows 8.1).
index 3415efe2dea117dc7a6a471ba812413e7cef8aa2..7815bfcf8def1e5e4003ab9cdadd900eb76c8d58 100644 (file)
@@ -161,9 +161,9 @@ WIN32 is still required for the locale module.
 #endif /* MS_WIN64 */
 
 /* 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
+/* Python 3.12+ requires Windows 8.1 or greater */
+#define Py_WINVER 0x0603 /* _WIN32_WINNT_WINBLUE (8.1) */
+#define Py_NTDDI NTDDI_WINBLUE
 
 /* 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