File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13271,6 +13271,8 @@ os_cpu_count_impl(PyObject *module)
13271
13271
{
13272
13272
int ncpu = 0 ;
13273
13273
#ifdef MS_WINDOWS
13274
+ /* Declare prototype here to avoid pulling in all of the Win7 APIs in 3.8 */
13275
+ DWORD WINAPI GetActiveProcessorCount (WORD group );
13274
13276
ncpu = GetActiveProcessorCount (ALL_PROCESSOR_GROUPS );
13275
13277
#elif defined(__hpux )
13276
13278
ncpu = mpctl (MPC_GETNUMSPUS , NULL , NULL );
Original file line number Diff line number Diff line change @@ -135,9 +135,9 @@ WIN32 is still required for the locale module.
135
135
#endif /* MS_WIN64 */
136
136
137
137
/* set the version macros for the windows headers */
138
- /* Python 3.9 + requires Windows 8 or greater */
139
- #define Py_WINVER 0x0602 /* _WIN32_WINNT_WIN8 */
140
- #define Py_NTDDI NTDDI_WIN8
138
+ /* Python 3.5 + requires Windows Vista or greater */
139
+ #define Py_WINVER 0x0600 /* _WIN32_WINNT_VISTA */
140
+ #define Py_NTDDI NTDDI_VISTA
141
141
142
142
/* We only set these values when building Python - we don't want to force
143
143
these values on extensions, as that will affect the prototypes and
You can’t perform that action at this time.
0 commit comments