diff --git a/Python/import.c b/Python/import.c index 291e63dc794..b35dea19276 100644 --- a/Python/import.c +++ b/Python/import.c @@ -4,6 +4,8 @@ #include "Python.h" #include "Python-ast.h" +#undef Yield /* to avoid conflict with winbase.h */ + #include "pyarena.h" #include "pythonrun.h" #include "errcode.h" diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 75241fe9159..d434d50b4f2 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -4,6 +4,8 @@ #include "Python.h" #include "Python-ast.h" +#undef Yield /* to avoid conflict with winbase.h */ + #include "grammar.h" #include "node.h" #include "token.h"