diff options
author | Mark Florisson <markflorisson88@gmail.com> | 2012-02-16 21:44:58 +0000 |
---|---|---|
committer | Mark Florisson <markflorisson88@gmail.com> | 2012-02-20 20:08:48 +0000 |
commit | dd08f821d7d8c743785eb5c2085a850c4be8af23 (patch) | |
tree | 69b641ad3fc9f625879f0bfcc8d78e6e7dee150d /Cython/Utility/ModuleSetupCode.c | |
parent | b5009ce5c941a39105bea64bc9479baf55b7b860 (diff) | |
download | cython-dd08f821d7d8c743785eb5c2085a850c4be8af23.tar.gz |
Allow inter-module memoryview buffer acquiring for py < 2.6
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index f85be021b..b0777b76b 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -77,6 +77,8 @@ #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_FORMAT | PyBUF_WRITABLE) #define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_FORMAT | PyBUF_WRITABLE) + typedef int (*getbufferproc)(PyObject *, Py_buffer *, int); + typedef void (*releasebufferproc)(PyObject *, Py_buffer *); #endif #if PY_MAJOR_VERSION < 3 |