[BACK]Return to patch-python_google_protobuf_pyext_descriptor.cc CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / protobuf / patches

Annotation of pkgsrc/devel/protobuf/patches/patch-python_google_protobuf_pyext_descriptor.cc, Revision 1.1

1.1     ! markd       1: $NetBSD$
        !             2:
        !             3: python3.7 fixes
        !             4:
        !             5: --- python/google/protobuf/pyext/descriptor.cc.orig    2018-07-30 22:16:10.000000000 +0000
        !             6: +++ python/google/protobuf/pyext/descriptor.cc
        !             7: @@ -56,7 +56,7 @@
        !             8:    #endif
        !             9:    #define PyString_AsStringAndSize(ob, charpp, sizep) \
        !            10:      (PyUnicode_Check(ob)? \
        !            11: -       ((*(charpp) = PyUnicode_AsUTF8AndSize(ob, (sizep))) == NULL? -1: 0): \
        !            12: +       ((*(charpp) = const_cast<char*>(PyUnicode_AsUTF8AndSize(ob, (sizep)))) == NULL? -1: 0): \
        !            13:         PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
        !            14:  #endif
        !            15:

CVSweb <webmaster@jp.NetBSD.org>