mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #23451: Update pyconfig.h for Windows to require Vista headers and remove unnecessary version checks.
This commit is contained in:
parent
2f3d440549
commit
3e96f324dc
6 changed files with 29 additions and 68 deletions
|
|
@ -1001,6 +1001,12 @@ PyDoc_STRVAR(GetVersion_doc,
|
|||
\n\
|
||||
Return the version number of the current operating system.");
|
||||
|
||||
/* Disable deprecation warnings about GetVersionEx as the result is
|
||||
being passed straight through to the caller, who is responsible for
|
||||
using it correctly. */
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4996)
|
||||
|
||||
static PyObject *
|
||||
winapi_GetVersion(PyObject* self, PyObject* args)
|
||||
{
|
||||
|
|
@ -1010,6 +1016,8 @@ winapi_GetVersion(PyObject* self, PyObject* args)
|
|||
return PyLong_FromUnsignedLong(GetVersion());
|
||||
}
|
||||
|
||||
#pragma warning(pop)
|
||||
|
||||
static PyObject *
|
||||
winapi_OpenProcess(PyObject *self, PyObject *args)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue