summaryrefslogtreecommitdiffstats
path: root/Parser/parser.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-03-18 08:54:13 (GMT)
committerGitHub <noreply@github.com>2021-03-18 08:54:13 (GMT)
commit6af528b4ab342805534c0bfe61d84ed7bb519468 (patch)
treefafe058402a1ec24687a645b29da9f4ff1820db1 /Parser/parser.c
parente0b4aa0f5c3c2b2c60f5d8b20cf291442a8df8a5 (diff)
downloadcpython-6af528b4ab342805534c0bfe61d84ed7bb519468.zip
cpython-6af528b4ab342805534c0bfe61d84ed7bb519468.tar.gz
cpython-6af528b4ab342805534c0bfe61d84ed7bb519468.tar.bz2
bpo-43244: Fix test_peg_generators on Windows (GH-24913)
Don't redefine Py_DebugFlag, it's already defined in pydebug.h which is included by Python.h
Diffstat (limited to 'Parser/parser.c')
-rw-r--r--Parser/parser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Parser/parser.c b/Parser/parser.c
index acfaf80..6efaebe 100644
--- a/Parser/parser.c
+++ b/Parser/parser.c
@@ -2,10 +2,9 @@
#include "pegen.h"
#if defined(Py_DEBUG) && defined(Py_BUILD_CORE)
-extern int Py_DebugFlag;
-#define D(x) if (Py_DebugFlag) x;
+# define D(x) if (Py_DebugFlag) x;
#else
-#define D(x)
+# define D(x)
#endif
static const int n_keyword_lists = 9;
static KeywordToken *reserved_keywords[] = {