From: Victor Stinner <victor.stinner@gmail.com> Date: Tue, 13 Mar 2012 00:17:31 +0000 (+0100) Subject: Try to fix compilation of Python-ast.c on Visual Studio 2008 X-Git-Tag: v3.3.0a2~234^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45e50de1f5eed5b2ee936e36dd297cd6a43c042d;p=python Try to fix compilation of Python-ast.c on Visual Studio 2008 --- diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 2f269f4714..0be6c7fe81 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 cf73beaa15..1178d74d7f 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;