]> granicus.if.org Git - python/commitdiff
bpo-32592: Set Windows 8 as the minimum required version for API support (GH-15951)
authorSteve Dower <steve.dower@python.org>
Wed, 11 Sep 2019 16:03:37 +0000 (17:03 +0100)
committerZachary Ware <zachary.ware@gmail.com>
Wed, 11 Sep 2019 16:03:37 +0000 (17:03 +0100)
Misc/NEWS.d/next/Windows/2019-09-11-14-51-56.bpo-32592.jvQMD9.rst [new file with mode: 0644]
Modules/posixmodule.c
PC/pyconfig.h

diff --git a/Misc/NEWS.d/next/Windows/2019-09-11-14-51-56.bpo-32592.jvQMD9.rst b/Misc/NEWS.d/next/Windows/2019-09-11-14-51-56.bpo-32592.jvQMD9.rst
new file mode 100644 (file)
index 0000000..c07a121
--- /dev/null
@@ -0,0 +1 @@
+Set Windows 8 as the minimum required version for API support
index 089572f4fdab0ec0d901cbccdabb902e10c220f2..e71d4b28bd1e67c14668ead9fbb9a8bd3dc9e8cd 100644 (file)
@@ -12204,8 +12204,6 @@ os_cpu_count_impl(PyObject *module)
 {
     int ncpu = 0;
 #ifdef MS_WINDOWS
-    /* Declare prototype here to avoid pulling in all of the Win7 APIs in 3.8 */
-    DWORD WINAPI GetActiveProcessorCount(WORD group);
     ncpu = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS);
 #elif defined(__hpux)
     ncpu = mpctl(MPC_GETNUMSPUS, NULL, NULL);
index 9304c7257c667bccd3ba7c2c69501019b5b2e0b8..d407e1d4632af5a4fbf6a4e0fa26d30529cec4b6 100644 (file)
@@ -135,9 +135,9 @@ WIN32 is still required for the locale module.
 #endif /* MS_WIN64 */
 
 /* set the version macros for the windows headers */
-/* Python 3.5+ requires Windows Vista or greater */
-#define Py_WINVER 0x0600 /* _WIN32_WINNT_VISTA */
-#define Py_NTDDI NTDDI_VISTA
+/* Python 3.9+ requires Windows 8 or greater */
+#define Py_WINVER 0x0602 /* _WIN32_WINNT_WIN8 */
+#define Py_NTDDI NTDDI_WIN8
 
 /* 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