From e0670d6d881553ca6778ec726c3267a4928d6e43 Mon Sep 17 00:00:00 2001 From: Oleg Iarygin Date: Sat, 9 Jul 2022 07:13:26 +0300 Subject: [PATCH] Trying to make the method in-modular instead --- Modules/_testcapi/parts.h | 2 +- Modules/_testcapi/vectorcall.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;