Skip to content

Commit b8cbb46

Browse files
committed
Add #ifdef guard around PyBytes_RESIZE
1 parent 169db1b commit b8cbb46

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/release.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ Fixes
3232
* Fix ``const`` discard warnings in ``fletcher32``.
3333
By :user:`John Kirkham <jakirkham>`, :issue:`728`
3434

35+
* Add ``#ifdef`` guard around ``PyBytes_RESIZE``.
36+
By :user:`John Kirkham <jakirkham>`, :issue:`731`
37+
3538
Maintenance
3639
~~~~~~~~~~~
3740

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)