Skip to content
Merged
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
5 changes: 5 additions & 0 deletions bottleneck/src/bottleneck.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
#include <numpy/arrayobject.h>
#include <bn_config.h>

#ifdef Py_LIMITED_API
#define PyTuple_GET_ITEM PyTuple_GetItem
#define PyTuple_GET_SIZE PyTuple_Size
#endif

/* THREADS=1 releases the GIL but increases function call
* overhead. THREADS=0 does not release the GIL but keeps
* function call overhead low. Curly brackets are for C89
Expand Down
Loading