Skip to content

Commit 58bc9c4

Browse files
authored
Add #ifndef guard around PyBytes_RESIZE (#732)
1 parent 933d901 commit 58bc9c4

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
@@ -35,6 +35,9 @@ Fixes
3535
* Update ``license*`` metadata and include third-party licenses.
3636
By :user:`John Kirkham <jakirkham>`, :issue:`729`
3737

38+
* Add ``#ifndef`` guard around ``PyBytes_RESIZE``.
39+
By :user:`John Kirkham <jakirkham>`, :issue:`732`
40+
3841
Maintenance
3942
~~~~~~~~~~~
4043

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)