From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Tue, 27 May 2025 19:08:41 +0000 (+0200) Subject: [3.14] gh-134774: Remove additional Py_DEBUG definition (GH-134791) X-Git-Tag: v3.14.0b3~154 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c74700dd87e1447c34695a96a426455457c7469;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-134774: Remove additional Py_DEBUG definition (GH-134791) --- diff --git a/Misc/NEWS.d/next/Build/2025-05-27-17-04-20.gh-issue-134774.CusyjW.rst b/Misc/NEWS.d/next/Build/2025-05-27-17-04-20.gh-issue-134774.CusyjW.rst new file mode 100644 index 000000000000..0839803ff01f --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-05-27-17-04-20.gh-issue-134774.CusyjW.rst @@ -0,0 +1,2 @@ +Fix :c:macro:`Py_DEBUG` macro redefinition warnings on Windows debug builds. +Patch by Chris Eibl. diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 66fe2ab09984..710a737ebcc0 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -94,11 +94,6 @@ WIN32 is still required for the locale module. #endif #endif /* Py_BUILD_CORE || Py_BUILD_CORE_BUILTIN || Py_BUILD_CORE_MODULE */ -/* _DEBUG implies Py_DEBUG */ -#ifdef _DEBUG -# define Py_DEBUG 1 -#endif - /* Define to 1 when compiling for experimental free-threaded builds */ #ifdef Py_GIL_DISABLED /* We undefine if it was set to zero because all later checks are #ifdef.