#include "pyconfig.h" // Py_GIL_DISABLED // Need limited C API version 3.5 for PyCodec_NameReplaceErrors() #if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API) #define Py_LIMITED_API … #endif #include "parts.h" static PyObject * codec_namereplace_errors(PyObject *Py_UNUSED(module), PyObject *exc) { … } static PyMethodDef test_methods[] = …; int _PyTestLimitedCAPI_Init_Codec(PyObject *module) { … }