https://github.com/python/cpython/commit/6c74700dd87e1447c34695a96a426455457c7469
commit: 6c74700dd87e1447c34695a96a426455457c7469
branch: 3.14
author: Chris Eibl <138194463+chris-e...@users.noreply.github.com>
committer: zooba <steve.do...@microsoft.com>
date: 2025-05-27T20:08:41+01:00
summary:

[3.14] gh-134774: Remove additional Py_DEBUG definition (GH-134791)

files:
A Misc/NEWS.d/next/Build/2025-05-27-17-04-20.gh-issue-134774.CusyjW.rst
M 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
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.
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.

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to