Skip to content

Commit

Permalink
Adjust Py_WINVER for our Win 7 target
Browse files Browse the repository at this point in the history
We support win7 still, so adjust accordingly.

Should be merged into the win7 patch
  • Loading branch information
lazka committed Jul 29, 2021
1 parent bf8eeb6 commit 44f87e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PC/pyconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ WIN32 is still required for the locale module.

/* 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
#define Py_WINVER 0x0601 /* _WIN32_WINNT_WIN7 */
#define Py_NTDDI NTDDI_WIN7

/* 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 44f87e7

Please sign in to comment.