Skip to content

Commit 28c8549

Browse files
zoobamiss-islington
authored andcommitted
[3.12] pythongh-124487: Update Windows API version to Windows 8.1 (pythonGH-124676)
(cherry picked from commit a4916e6) Co-authored-by: Steve Dower <steve.dower@python.org> pythongh-124487: Update Windows API version to Windows 8.1
1 parent cf98f39 commit 28c8549

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Windows builds now use Windows 8.1 as their API baseline (installation
2+
already required Windows 8.1).

PC/pyconfig.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ WIN32 is still required for the locale module.
169169
#endif /* MS_WIN64 */
170170

171171
/* set the version macros for the windows headers */
172-
/* Python 3.9+ requires Windows 8 or greater */
173-
#define Py_WINVER 0x0602 /* _WIN32_WINNT_WIN8 */
174-
#define Py_NTDDI NTDDI_WIN8
172+
/* Python 3.12+ requires Windows 8.1 or greater */
173+
#define Py_WINVER 0x0603 /* _WIN32_WINNT_WINBLUE (8.1) */
174+
#define Py_NTDDI NTDDI_WINBLUE
175175

176176
/* We only set these values when building Python - we don't want to force
177177
these values on extensions, as that will affect the prototypes and

0 commit comments

Comments
 (0)