Fix issue #22, pygit2 compiles again with Python 2.5

This commit is contained in:
J. David Ibáñez 2011-06-25 18:43:21 +02:00
parent 7e8da54569
commit 215893328c

@ -29,6 +29,12 @@
#include <Python.h>
#include <git2.h>
/* Define PyVarObject_HEAD_INIT for Python 2.5 */
#ifndef PyVarObject_HEAD_INIT
#define PyVarObject_HEAD_INIT(type, size) \
PyObject_HEAD_INIT(type) size,
#endif
typedef struct {
PyObject_HEAD