Skip to content

Commit 4f6a0aa

Browse files
authored
Add #ifdef guard around PyBytes_RESIZE
1 parent 169db1b commit 4f6a0aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

numcodecs/compat_ext.pxd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
cdef extern from *:
55
"""
6+
#ifndef PyBytes_RESIZE
67
#define PyBytes_RESIZE(b, n) _PyBytes_Resize(&b, n)
8+
#endif
79
"""
810
int PyBytes_RESIZE(object b, Py_ssize_t n) except -1
911

0 commit comments

Comments
 (0)