Fix issue #22, pygit2 compiles again with Python 2.5
This commit is contained in:
parent
7e8da54569
commit
215893328c
6
pygit2.c
6
pygit2.c
@ -29,6 +29,12 @@
|
|||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include <git2.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 {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user