diff options
author | John Ehresman <jpe@wingware.com> | 2010-04-12 23:21:24 -0400 |
---|---|---|
committer | John Ehresman <jpe@wingware.com> | 2010-04-15 12:13:34 -0400 |
commit | f6f2ed44c84aff3c38fc3eb5961b28621a14fc51 (patch) | |
tree | 20d33d2b2dc36a454ba8ad9e59b823b50569e3a8 /codegen/codegen.py | |
parent | d8109d9de81a776794965d4cc1093ca03bebd6af (diff) | |
download | pygobject-f6f2ed44c84aff3c38fc3eb5961b28621a14fc51.tar.gz pygobject-f6f2ed44c84aff3c38fc3eb5961b28621a14fc51.tar.xz pygobject-f6f2ed44c84aff3c38fc3eb5961b28621a14fc51.zip |
Make pyglib-python-compat.h a public header and include in pygobject.h Also #define PyVarObject_HEAD_INIT if not defined (in < python 2.6)
Diffstat (limited to 'codegen/codegen.py')
-rwxr-xr-x | codegen/codegen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/codegen.py b/codegen/codegen.py index 7a1f7e6..aef93ae 100755 --- a/codegen/codegen.py +++ b/codegen/codegen.py @@ -96,7 +96,7 @@ class FileOutput: class Wrapper: type_tmpl = ( 'PyTypeObject G_GNUC_INTERNAL Py%(typename)s_Type = {\n' - ' PyVarObject_HEAD_INIT(NULL, 0)' + ' PyVarObject_HEAD_INIT(NULL, 0)\n' ' "%(classname)s", /* tp_name */\n' ' sizeof(%(tp_basicsize)s), /* tp_basicsize */\n' ' 0, /* tp_itemsize */\n' |