mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08: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:
@@ -11,6 +11,7 @@
|
||||
#include "Python.h"
|
||||
|
||||
#include "Python-ast.h"
|
||||
#undef Yield /* undefine macro conflicting with <winbase.h> */
|
||||
#include "pycore_pystate.h"
|
||||
#include "grammar.h"
|
||||
#include "node.h"
|
||||
|
||||
Reference in New Issue
Block a user