From 45e50de1f5eed5b2ee936e36dd297cd6a43c042d Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 13 Mar 2012 01:17:31 +0100 Subject: [PATCH] Try to fix compilation of Python-ast.c on Visual Studio 2008 --- Parser/asdl_c.py | 2 +- Python/Python-ast.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 2f269f47140..0be6c7fe816 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -604,7 +604,7 @@ class PyTypesVisitor(PickleVisitor): def visitModule(self, mod): self.emit(""" typedef struct { - PyObject_HEAD; + PyObject_HEAD PyObject *dict; } AST_object; diff --git a/Python/Python-ast.c b/Python/Python-ast.c index cf73beaa158..1178d74d7f9 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -456,7 +456,7 @@ static char *withitem_fields[]={ typedef struct { - PyObject_HEAD; + PyObject_HEAD PyObject *dict; } AST_object;