diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-11-22 17:38:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-22 17:38:38 (GMT) |
commit | 3bb183d7fb83ad6a84ec13dea90f95d67be35c69 (patch) | |
tree | 452e2804dc376a4bc6f4c80e660278dd9fbea1a1 /Modules | |
parent | 2cf5d32fd9e61488e8b0be55a2e92a752ba8b06b (diff) | |
download | cpython-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 'Modules')
-rw-r--r-- | Modules/parsermodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index df239d6..c8fb3d2 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -32,6 +32,7 @@ #include "Python.h" /* general Python API */ #include "Python-ast.h" /* mod_ty */ +#undef Yield /* undefine macro conflicting with <winbase.h> */ #include "ast.h" #include "graminit.h" /* symbols defined in the grammar */ #include "node.h" /* internal parser structure */ |