diff options
author | Petr Sumbera <petr.sumbera@oracle.com> | 2013-05-03 22:25:38 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2013-05-03 22:25:38 +0800 |
commit | 722923bc9b788f028e4221c77138fc66735a3113 (patch) | |
tree | ac6b8328f3e0d64e3f0704af9e8515035fdaa9a8 /python/libxml_wrap.h | |
parent | 10ec19ab0a49936ca8ca0d6962d24d3f889960a5 (diff) | |
download | libxml2-722923bc9b788f028e4221c77138fc66735a3113.tar.gz |
Fix for compilation with python 2.6.8
Remap PyCapsule to PyCObject based on the macro being available
instead of using the python version
Diffstat (limited to 'python/libxml_wrap.h')
-rw-r--r-- | python/libxml_wrap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/libxml_wrap.h b/python/libxml_wrap.h index a9b97390..53a06180 100644 --- a/python/libxml_wrap.h +++ b/python/libxml_wrap.h @@ -34,11 +34,11 @@ #define PyBytes_AsString PyString_AsString #define PyBytes_AS_STRING PyString_AS_STRING #define PyBytes_GET_SIZE PyString_GET_SIZE - +#endif +#ifndef PyCapsule_New #define PyCapsule_New PyCObject_FromVoidPtrAndDesc #define PyCapsule_CheckExact PyCObject_Check #define PyCapsule_GetPointer(o, n) PyCObject_GetDesc((o)) - #endif #endif |