From d36d6a9c1808e87628ebaa855d4bec80130189f4 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 7 Apr 2021 13:01:09 +0200 Subject: bpo-43244: Remove Yield macro from pycore_ast.h (GH-25243) * pycore_ast.h no longer defines the Yield macro. * Fix a compiler warning on Windows: "warning C4005: 'Yield': macro redefinition". * Python-ast.c now defines directly functions with their real _Py_xxx() name, rather than xxx(). * Remove "#undef Yield" in C files including pycore_ast.h. --- Python/pythonrun.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 1715cde49d..99be6295b4 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -11,8 +11,6 @@ #include "Python.h" #include "pycore_ast.h" // PyAST_mod2obj -#undef Yield /* undefine macro conflicting with */ - #include "pycore_compile.h" // _PyAST_Compile() #include "pycore_interp.h" // PyInterpreterState.importlib #include "pycore_object.h" // _PyDebug_PrintTotalRefs() -- cgit v1.2.1