From 00b0a9e5b2aac53db0c8c12e90b5537cd648043f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= Date: Wed, 2 May 2007 16:02:48 +0000 Subject: [PATCH] Undefine the Yield macro after including Python_ast.h where it may cause conflicts with winbase.h on Windows. --- Python/import.c | 2 ++ Python/pythonrun.c | 2 ++ 2 files changed, 4 insertions(+) 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"