]> granicus.if.org Git - python/commitdiff
Undefine the Yield macro after including Python_ast.h where it may cause conflicts...
authorKristján Valur Jónsson <kristjan@ccpgames.com>
Wed, 2 May 2007 16:02:48 +0000 (16:02 +0000)
committerKristján Valur Jónsson <kristjan@ccpgames.com>
Wed, 2 May 2007 16:02:48 +0000 (16:02 +0000)
Python/import.c
Python/pythonrun.c

index 291e63dc794bf22d75098afda13f428f3d48bea1..b35dea19276c14266a89bcbf7132afd271f0b5f1 100644 (file)
@@ -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"
index 75241fe9159bc54a76586817375741b4b8085a53..d434d50b4f2c7984caa0961ea9ce5ee387c949c7 100644 (file)
@@ -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"