mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-10 08:58:16 +03:00
Fix for compilation with python 2.6.8
Remap PyCapsule to PyCObject based on the macro being available instead of using the python version
This commit is contained in:
parent
10ec19ab0a
commit
722923bc9b
@ -34,11 +34,11 @@
|
|||||||
#define PyBytes_AsString PyString_AsString
|
#define PyBytes_AsString PyString_AsString
|
||||||
#define PyBytes_AS_STRING PyString_AS_STRING
|
#define PyBytes_AS_STRING PyString_AS_STRING
|
||||||
#define PyBytes_GET_SIZE PyString_GET_SIZE
|
#define PyBytes_GET_SIZE PyString_GET_SIZE
|
||||||
|
#endif
|
||||||
|
#ifndef PyCapsule_New
|
||||||
#define PyCapsule_New PyCObject_FromVoidPtrAndDesc
|
#define PyCapsule_New PyCObject_FromVoidPtrAndDesc
|
||||||
#define PyCapsule_CheckExact PyCObject_Check
|
#define PyCapsule_CheckExact PyCObject_Check
|
||||||
#define PyCapsule_GetPointer(o, n) PyCObject_GetDesc((o))
|
#define PyCapsule_GetPointer(o, n) PyCObject_GetDesc((o))
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user