mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
gh-131942: Use the Python-specific Py_DEBUG
macro rather than _DEBUG
in Windows-related C code (GH-131944)
This commit is contained in:
parent
e15bbfafbc
commit
f0f93ba5fa
13 changed files with 32 additions and 28 deletions
|
@ -92,7 +92,7 @@ module _ctypes
|
|||
#include <sanitizer/msan_interface.h>
|
||||
#endif
|
||||
|
||||
#if defined(_DEBUG) || defined(__MINGW32__)
|
||||
#if defined(Py_DEBUG) || defined(__MINGW32__)
|
||||
/* Don't use structured exception handling on Windows if this is defined.
|
||||
MingW, AFAIK, doesn't support it.
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -175,7 +175,7 @@ _PySSLContext_set_keylog_filename(PyObject *op, PyObject *arg,
|
|||
PySSLContext *self = PySSLContext_CAST(op);
|
||||
FILE *fp;
|
||||
|
||||
#if defined(MS_WINDOWS) && defined(_DEBUG)
|
||||
#if defined(MS_WINDOWS) && defined(Py_DEBUG)
|
||||
PyErr_SetString(PyExc_NotImplementedError,
|
||||
"set_keylog_filename: unavailable on Windows debug build");
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue