mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
2
Include/Python-ast.h
generated
2
Include/Python-ast.h
generated
|
@ -8,7 +8,7 @@ extern "C" {
|
|||
|
||||
#include "asdl.h"
|
||||
|
||||
#undef Yield /* undefine macro conflicting with winbase.h */
|
||||
#undef Yield /* undefine macro conflicting with <winbase.h> */
|
||||
|
||||
typedef struct _mod *mod_ty;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue