From e36fc998d9482eeec0c8d20b19d166e26f3fb1a6 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 10 Oct 2013 18:55:28 +0200 Subject: [PATCH] fix declaration of PyBuffer_FillInfo() --- Cython/Includes/cpython/buffer.pxd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Cython/Includes/cpython/buffer.pxd b/Cython/Includes/cpython/buffer.pxd index ea2a8c3..01023e6 100644 --- a/Cython/Includes/cpython/buffer.pxd +++ b/Cython/Includes/cpython/buffer.pxd @@ -96,9 +96,8 @@ cdef extern from "Python.h": # (Fortran-style if fort is 'F' or C-style otherwise) array of the # given shape with the given number of bytes per element. - int PyBuffer_FillInfo(Py_buffer *view, void *buf, - Py_ssize_t len, int readonly, - int flags) except -1 + int PyBuffer_FillInfo(Py_buffer *view, object exporter, void *buf, + Py_ssize_t len, int readonly, int flags) except -1 # Fill in a buffer-info structure, view, correctly for an exporter # that can only share a contiguous chunk of memory of “unsigned # bytes” of the given length. Return 0 on success and -1 (with -- 2.7.4