Skip to content

Commit 0b72ccf

Browse files
zoobazware
authored andcommitted
bpo-32592: Set Windows 8 as the minimum required version for API support (pythonGH-15951)
1 parent e6557d3 commit 0b72ccf

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set Windows 8 as the minimum required version for API support

Modules/posixmodule.c

-2
Original file line numberDiff line numberDiff line change
@@ -12204,8 +12204,6 @@ os_cpu_count_impl(PyObject *module)
1220412204
{
1220512205
int ncpu = 0;
1220612206
#ifdef MS_WINDOWS
12207-
/* Declare prototype here to avoid pulling in all of the Win7 APIs in 3.8 */
12208-
DWORD WINAPI GetActiveProcessorCount(WORD group);
1220912207
ncpu = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS);
1221012208
#elif defined(__hpux)
1221112209
ncpu = mpctl(MPC_GETNUMSPUS, NULL, NULL);

PC/pyconfig.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ WIN32 is still required for the locale module.
135135
#endif /* MS_WIN64 */
136136

137137
/* set the version macros for the windows headers */
138-
/* Python 3.5+ requires Windows Vista or greater */
139-
#define Py_WINVER 0x0600 /* _WIN32_WINNT_VISTA */
140-
#define Py_NTDDI NTDDI_VISTA
138+
/* Python 3.9+ requires Windows 8 or greater */
139+
#define Py_WINVER 0x0602 /* _WIN32_WINNT_WIN8 */
140+
#define Py_NTDDI NTDDI_WIN8
141141

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

0 commit comments

Comments
 (0)