]> granicus.if.org Git - python/commit
bpo-35177, Python-ast.h: Fix "Yield" compiler warning (GH-10664)
authorVictor Stinner <vstinner@redhat.com>
Thu, 22 Nov 2018 17:38:38 +0000 (18:38 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Nov 2018 17:38:38 +0000 (18:38 +0100)
commit3bb183d7fb83ad6a84ec13dea90f95d67be35c69
tree452e2804dc376a4bc6f4c80e660278dd9fbea1a1
parent2cf5d32fd9e61488e8b0be55a2e92a752ba8b06b
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
Include/Python-ast.h
Modules/parsermodule.c
Parser/asdl_c.py
Python/bltinmodule.c
Python/import.c
Python/pylifecycle.c
Python/pythonrun.c
Python/symtable.c