From 1f9dd9c53793f147cbf24900aa549c7230f9efe2 Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Tue, 27 May 2025 17:01:19 +0200 Subject: [PATCH 1/2] fix 'Py_DEBUG': macro redefinition warnings --- PC/pyconfig.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 66fe2ab0998493..710a737ebcc081 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. From 8a5366a3381db08d9b88893a227d3769f81fed76 Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Tue, 27 May 2025 17:05:13 +0200 Subject: [PATCH 2/2] blurb it --- .../next/Build/2025-05-27-17-04-20.gh-issue-134774.CusyjW.rst | 2 ++ 1 file changed, 2 insertions(+) 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 00000000000000..0839803ff01ff9 --- /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.