components/libxml2/patches/python26.patch
branchs11-update
changeset 2668 be2379d0aa1f
equal deleted inserted replaced
2667:24447a4555e5 2668:be2379d0aa1f
       
     1 See:
       
     2 
       
     3 https://mail.gnome.org/archives/xml/2013-April/msg00039.html
       
     4 
       
     5 --- libxml2-2.9.1/python/libxml_wrap.h	2013-04-01 19:25:28.000000000 -0700
       
     6 +++ libxml2-2.9.1/python/libxml_wrap.h	2013-04-23 07:55:11.268714627 -0700
       
     7 @@ -34,11 +34,11 @@
       
     8  #define PyBytes_AsString PyString_AsString
       
     9  #define PyBytes_AS_STRING PyString_AS_STRING
       
    10  #define PyBytes_GET_SIZE PyString_GET_SIZE
       
    11 -
       
    12 +#endif
       
    13 +#ifndef PyCapsule_New
       
    14  #define PyCapsule_New PyCObject_FromVoidPtrAndDesc
       
    15  #define PyCapsule_CheckExact PyCObject_Check
       
    16  #define PyCapsule_GetPointer(o, n) PyCObject_GetDesc((o))
       
    17 -
       
    18  #endif
       
    19  #endif
       
    20