summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-11-22 17:38:38 (GMT)
committerGitHub <noreply@github.com>2018-11-22 17:38:38 (GMT)
commit3bb183d7fb83ad6a84ec13dea90f95d67be35c69 (patch)
tree452e2804dc376a4bc6f4c80e660278dd9fbea1a1 /Parser
parent2cf5d32fd9e61488e8b0be55a2e92a752ba8b06b (diff)
downloadcpython-3bb183d7fb83ad6a84ec13dea90f95d67be35c69.zip
cpython-3bb183d7fb83ad6a84ec13dea90f95d67be35c69.tar.gz
cpython-3bb183d7fb83ad6a84ec13dea90f95d67be35c69.tar.bz2
bpo-35177, Python-ast.h: Fix "Yield" compiler warning (GH-10664)
Partially revert commit 5f2df88b63e50d23914e97ec778861a52abdeaad: add "#undef Yield" to .c files after including Python-ast.h. Fix the warning: winbase.h(102): warning C4005: 'Yield': macro redefinition
Diffstat (limited to 'Parser')
-rw-r--r--Parser/asdl_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 6a8262c..75fb78b 100644
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -1247,7 +1247,7 @@ def main(srcfile, dump_module=False):
f.write('\n')
f.write('#include "asdl.h"\n')
f.write('\n')
- f.write('#undef Yield /* undefine macro conflicting with winbase.h */\n')
+ f.write('#undef Yield /* undefine macro conflicting with <winbase.h> */\n')
f.write('\n')
c = ChainOfVisitors(TypeDefVisitor(f),
StructVisitor(f),