Skip to content

Commit

Permalink
[3.12] pythongh-124487: Update Windows API version to Windows 8.1 (py…
Browse files Browse the repository at this point in the history
…thonGH-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
  • Loading branch information
zooba authored and miss-islington committed Sep 27, 2024
1 parent cf98f39 commit 28c8549
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Windows builds now use Windows 8.1 as their API baseline (installation
already required Windows 8.1).
6 changes: 3 additions & 3 deletions PC/pyconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,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
Expand Down

0 comments on commit 28c8549

Please sign in to comment.