diff --git a/Modules/_testcapi/parts.h b/Modules/_testcapi/parts.h index 1111021e1852b3..54cddf4b0929f2 100644 --- a/Modules/_testcapi/parts.h +++ b/Modules/_testcapi/parts.h @@ -1,3 +1,3 @@ #include "Python.h" -PyAPI_FUNC(int) _PyTestCapi_Init_Vectorcall(PyObject *module); +int _PyTestCapi_Init_Vectorcall(PyObject *module); diff --git a/Modules/_testcapi/vectorcall.c b/Modules/_testcapi/vectorcall.c index 63c31c252428d8..9bc702905caf76 100644 --- a/Modules/_testcapi/vectorcall.c +++ b/Modules/_testcapi/vectorcall.c @@ -229,7 +229,7 @@ static PyTypeObject MethodDescriptor2_Type = { }; -PyAPI_FUNC(int) +int _PyTestCapi_Init_Vectorcall(PyObject *m) { if (PyModule_AddFunctions(m, TestMethods) < 0) { return -1;