Skip to content

Commit 6c74700

Browse files
authored
[3.14] gh-134774: Remove additional Py_DEBUG definition (GH-134791)
1 parent 0ea41f8 commit 6c74700

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix :c:macro:`Py_DEBUG` macro redefinition warnings on Windows debug builds.
2+
Patch by Chris Eibl.

PC/pyconfig.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ WIN32 is still required for the locale module.
9494
#endif
9595
#endif /* Py_BUILD_CORE || Py_BUILD_CORE_BUILTIN || Py_BUILD_CORE_MODULE */
9696

97-
/* _DEBUG implies Py_DEBUG */
98-
#ifdef _DEBUG
99-
# define Py_DEBUG 1
100-
#endif
101-
10297
/* Define to 1 when compiling for experimental free-threaded builds */
10398
#ifdef Py_GIL_DISABLED
10499
/* We undefine if it was set to zero because all later checks are #ifdef.

0 commit comments

Comments
 (0)