aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorXuehai Pan <XuehaiPan@pku.edu.cn>2025-05-08 23:01:25 +0800
committerGitHub <noreply@github.com>2025-05-08 15:01:25 +0000
commitf0f93ba5fa53ef5724250dd9f791d89abca04fa7 (patch)
tree81f097ae0eaeb34cf5220c73a0c6bb819ff5db75 /Python/marshal.c
parente15bbfafbcc9153fa0b05beb806984e288fdefe4 (diff)
downloadcpython-f0f93ba5fa53ef5724250dd9f791d89abca04fa7.tar.gz
cpython-f0f93ba5fa53ef5724250dd9f791d89abca04fa7.zip
gh-131942: Use the Python-specific `Py_DEBUG` macro rather than `_DEBUG` in Windows-related C code (GH-131944)
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index b39c1a5b1ad..afbef6ee679 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -38,7 +38,7 @@ module marshal
* On Windows PGO builds, the r_object function overallocates its stack and
* can cause a stack overflow. We reduce the maximum depth for all Windows
* releases to protect against this.
- * #if defined(MS_WINDOWS) && defined(_DEBUG)
+ * #if defined(MS_WINDOWS) && defined(Py_DEBUG)
*/
#if defined(MS_WINDOWS)
# define MAX_MARSHAL_STACK_DEPTH 1000