summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c2
-rw-r--r--Python/pythonrun.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c
index 291e63dc79..b35dea1927 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 75241fe915..d434d50b4f 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"