Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Fixes
* Fix ``const`` discard warnings in ``fletcher32``.
By :user:`John Kirkham <jakirkham>`, :issue:`728`

* Add ``#ifdef`` guard around ``PyBytes_RESIZE``.
By :user:`John Kirkham <jakirkham>`, :issue:`731`

Maintenance
~~~~~~~~~~~

Expand Down
2 changes: 2 additions & 0 deletions numcodecs/compat_ext.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

cdef extern from *:
"""
#ifndef PyBytes_RESIZE
#define PyBytes_RESIZE(b, n) _PyBytes_Resize(&b, n)
#endif
"""
int PyBytes_RESIZE(object b, Py_ssize_t n) except -1

Expand Down
Loading