mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +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
|
@ -3,6 +3,7 @@
|
|||
#include "Python.h"
|
||||
#include <ctype.h>
|
||||
#include "ast.h"
|
||||
#undef Yield /* undefine macro conflicting with <winbase.h> */
|
||||
#include "pycore_pystate.h"
|
||||
|
||||
_Py_IDENTIFIER(__builtins__);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue