Skip to content

Commit 3ff0e7e

Browse files
committed
Fix PyObject_Vectorcall() on limited C API 3.8
1 parent 9613749 commit 3ff0e7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pythoncapi_compat.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ static inline PyObject*
646646
PyObject_Vectorcall(PyObject *callable, PyObject *const *args,
647647
size_t nargsf, PyObject *kwnames)
648648
{
649-
#if PY_VERSION_HEX >= 0x030800B1 && !defined(PYPY_VERSION)
649+
#if PY_VERSION_HEX >= 0x030800B1 && !defined(PYPY_VERSION) && !defined(Py_LIMITED_API)
650650
// bpo-36974 added _PyObject_Vectorcall() to Python 3.8.0b1
651651
return _PyObject_Vectorcall(callable, args, nargsf, kwnames);
652652
#else

0 commit comments

Comments
 (0)