summaryrefslogtreecommitdiff
path: root/numpy/core/include
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-01-14 15:01:32 -0600
committerGitHub <noreply@github.com>2022-01-14 15:01:32 -0600
commitf40b105d627096ef04ca7a5ccbcd6ff53d810be6 (patch)
treea33d3a80dc0b741ec6e24392ff5c17e05e7e4483 /numpy/core/include
parentae270c3346499e73693730050e0f0b2272bd7e5c (diff)
parent1edd6407d008fcaa282a6058ae355025c26517fd (diff)
downloadnumpy-f40b105d627096ef04ca7a5ccbcd6ff53d810be6.tar.gz
Merge pull request #20818 from lpsinger/test-third-party-c-extensions-limited-api
BUG: Fix build of third-party extensions with Py_LIMITED_API
Diffstat (limited to 'numpy/core/include')
-rw-r--r--numpy/core/include/numpy/ufuncobject.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/core/include/numpy/ufuncobject.h b/numpy/core/include/numpy/ufuncobject.h
index 1d7050bbe..bb0633100 100644
--- a/numpy/core/include/numpy/ufuncobject.h
+++ b/numpy/core/include/numpy/ufuncobject.h
@@ -173,7 +173,11 @@ typedef struct _tagPyUFuncObject {
* but this was never implemented. (This is also why the above
* selector is called the "legacy" selector.)
*/
- vectorcallfunc vectorcall;
+ #ifndef Py_LIMITED_API
+ vectorcallfunc vectorcall;
+ #else
+ void *vectorcall;
+ #endif
/* Was previously the `PyUFunc_MaskedInnerLoopSelectionFunc` */
void *_always_null_previously_masked_innerloop_selector;