Undefine the Yield macro after including Python_ast.h where it may cause conflicts with winbase.h on Windows.

This commit is contained in:
Kristján Valur Jónsson 2007-05-02 16:02:48 +00:00
parent 55d53f0367
commit 00b0a9e5b2
2 changed files with 4 additions and 0 deletions

View 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"

View 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"