Dag Sverre Seljebotn wrote:
> And then generate a pyx-file-specific local PyObject_GetBuffer depending
> on the __cython_py2_buffer__ we can find:
>
> #ifdef Py2
> static int PyObject_GetBuffer(PyObject *, Py_buffer *, int);
> #endif
>
> ... code using PyObject_GetBuffer ...
>
> #ifdef Py2
> PyAPI_FUNC(int) PyObject_GetBuffer(PyObject *obj, Py_buffer *view,
> int flags) {
Sorry, this should have been declared static int as well.
--
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev