gh-131942: Use the Python-specific Py_DEBUG macro rather than _DEBUG in Windows-related C code (GH-131944)

This commit is contained in:
Xuehai Pan 2025-05-08 23:01:25 +08:00 committed by GitHub
parent e15bbfafbc
commit f0f93ba5fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 32 additions and 28 deletions

View file

@ -4427,7 +4427,7 @@ _ssl__SSLContext_load_dh_params_impl(PySSLContext *self, PyObject *filepath)
FILE *f;
DH *dh;
#if defined(MS_WINDOWS) && defined(_DEBUG)
#if defined(MS_WINDOWS) && defined(Py_DEBUG)
PyErr_SetString(PyExc_NotImplementedError,
"load_dh_params: unavailable on Windows debug build");
return NULL;