Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09aecb6

Browse files
[3.13] gh-124487: Update Windows API version to Windows 8.1 (GH-124676) (#124702)
gh-124487: Update Windows API version to Windows 8.1 (GH-124676) (cherry picked from commit a4916e6) Co-authored-by: Steve Dower <[email protected]>
1 parent 4618c0e commit 09aecb6

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.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)