From 042f31da552c19054acd3ef7bb6cfd857bce172b Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 24 Feb 2022 17:51:59 +0100 Subject: bpo-45459: C API uses type names rather than structure names (GH-31528) Thanks to the new pytypedefs.h, it becomes to use type names like PyObject rather like structure names like "struct _object". --- Include/cpython/import.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/cpython/import.h') diff --git a/Include/cpython/import.h b/Include/cpython/import.h index da9fb770a9..c734802ff2 100644 --- a/Include/cpython/import.h +++ b/Include/cpython/import.h @@ -6,7 +6,7 @@ PyMODINIT_FUNC PyInit__imp(void); PyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *); -PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(struct _Py_Identifier *name); +PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(_Py_Identifier *name); PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module); PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module); -- cgit v1.2.1