Browse Source

Try to fix compilation of Python-ast.c on Visual Studio 2008

pull/2332/head
Victor Stinner 14 years ago
parent
commit
45e50de1f5
  1. 2
      Parser/asdl_c.py
  2. 2
      Python/Python-ast.c

2
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;

2
Python/Python-ast.c

@ -456,7 +456,7 @@ static char *withitem_fields[]={
typedef struct {
PyObject_HEAD;
PyObject_HEAD
PyObject *dict;
} AST_object;

Loading…
Cancel
Save