File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13228,6 +13228,8 @@ os_cpu_count_impl(PyObject *module)
1322813228{
1322913229 int ncpu = 0 ;
1323013230#ifdef MS_WINDOWS
13231+ /* Declare prototype here to avoid pulling in all of the Win7 APIs in 3.8 */
13232+ DWORD WINAPI GetActiveProcessorCount (WORD group );
1323113233 ncpu = GetActiveProcessorCount (ALL_PROCESSOR_GROUPS );
1323213234#elif defined(__hpux )
1323313235 ncpu = mpctl (MPC_GETNUMSPUS , NULL , NULL );
Original file line number Diff line number Diff line change @@ -134,9 +134,9 @@ WIN32 is still required for the locale module.
134134#endif /* MS_WIN64 */
135135
136136/* set the version macros for the windows headers */
137- /* Python 3.9 + requires Windows 8 or greater */
138- #define Py_WINVER 0x0602 /* _WIN32_WINNT_WIN8 */
139- #define Py_NTDDI NTDDI_WIN8
137+ /* Python 3.5 + requires Windows Vista or greater */
138+ #define Py_WINVER 0x0600 /* _WIN32_WINNT_VISTA */
139+ #define Py_NTDDI NTDDI_VISTA
140140
141141/* We only set these values when building Python - we don't want to force
142142 these values on extensions, as that will affect the prototypes and
You can’t perform that action at this time.
0 commit comments