From 6c74700dd87e1447c34695a96a426455457c7469 Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Tue, 27 May 2025 21:08:41 +0200 Subject: [PATCH] [3.14] gh-134774: Remove additional Py_DEBUG definition (GH-134791) --- .../Build/2025-05-27-17-04-20.gh-issue-134774.CusyjW.rst | 2 ++ PC/pyconfig.h | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) create mode 100644 Misc/NEWS.d/next/Build/2025-05-27-17-04-20.gh-issue-134774.CusyjW.rst 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. -- 2.47.3