mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +00:00
bpo-35177, Python-ast.h: Fix "Yield" compiler warning (GH-10664)
Partially revert commit 5f2df88b63
:
add "#undef Yield" to .c files after including Python-ast.h.
Fix the warning:
winbase.h(102): warning C4005: 'Yield': macro redefinition
This commit is contained in:
parent
2cf5d32fd9
commit
3bb183d7fb
8 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "symtable.h"
|
||||
#undef Yield /* undefine macro conflicting with <winbase.h> */
|
||||
#include "structmember.h"
|
||||
|
||||
/* error strings used for warnings */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue