Do not pretend Python 2.5 is supported
This commit is contained in:
parent
9064b8e038
commit
eafcef38f6
8
pygit2.c
8
pygit2.c
@ -30,14 +30,6 @@
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
|
||||
/* Python 2.5 support */
|
||||
#ifndef Py_TYPE
|
||||
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
|
||||
#endif
|
||||
#ifndef PyVarObject_HEAD_INIT
|
||||
#define PyVarObject_HEAD_INIT(type, size) PyObject_HEAD_INIT(type) size,
|
||||
#endif
|
||||
|
||||
/* Python 3 support */
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
#define PyInt_AsLong PyLong_AsLong
|
||||
|
Loading…
x
Reference in New Issue
Block a user