Skip to content

Commit a4916e6

Browse files
authored
[3.12] gh-124487: Update Windows API version to Windows 8.1 (#124676)
gh-124487: Update Windows API version to Windows 8.1
1 parent 1d70dd2 commit a4916e6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
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

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

163163
/* set the version macros for the windows headers */
164-
/* Python 3.9+ requires Windows 8 or greater */
165-
#define Py_WINVER 0x0602 /* _WIN32_WINNT_WIN8 */
166-
#define Py_NTDDI NTDDI_WIN8
164+
/* Python 3.12+ requires Windows 8.1 or greater */
165+
#define Py_WINVER 0x0603 /* _WIN32_WINNT_WINBLUE (8.1) */
166+
#define Py_NTDDI NTDDI_WINBLUE
167167

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

0 commit comments

Comments
 (0)