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.