mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +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
|
@ -772,6 +772,12 @@ static PyStructSequence_Desc windows_version_desc = {
|
|||
via indexing, the rest are name only */
|
||||
};
|
||||
|
||||
/* 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 *
|
||||
sys_getwindowsversion(PyObject *self)
|
||||
{
|
||||
|
@ -803,6 +809,8 @@ sys_getwindowsversion(PyObject *self)
|
|||
return version;
|
||||
}
|
||||
|
||||
#pragma warning(pop)
|
||||
|
||||
#endif /* MS_WINDOWS */
|
||||
|
||||
#ifdef HAVE_DLOPEN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue