]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-134774: Remove additional Py_DEBUG definition (GH-134791)
authorChris Eibl <138194463+chris-eibl@users.noreply.github.com>
Tue, 27 May 2025 19:08:41 +0000 (21:08 +0200)
committerGitHub <noreply@github.com>
Tue, 27 May 2025 19:08:41 +0000 (20:08 +0100)
Misc/NEWS.d/next/Build/2025-05-27-17-04-20.gh-issue-134774.CusyjW.rst [new file with mode: 0644]
PC/pyconfig.h

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 (file)
index 0000000..0839803
--- /dev/null
@@ -0,0 +1,2 @@
+Fix :c:macro:`Py_DEBUG` macro redefinition warnings on Windows debug builds.
+Patch by Chris Eibl.
index 66fe2ab09984932c1c1d405aafb50a8813af69cb..710a737ebcc0819d07df8a00feec13dc90341498 100644 (file)
@@ -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.