From 5cbefa99198729a1d4e93d93f890c066039ee1d2 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 11 Jun 2018 15:01:47 +0300 Subject: Clean up after bpo-33738. (GH-7627) * Add declarations even if they are overridden by macros. * Make the declaration and the definition of PyExceptionClass_Name consistent. --- Include/pyerrors.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Include/pyerrors.h') diff --git a/Include/pyerrors.h b/Include/pyerrors.h index 5fd981c2ba..5b626584bb 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -140,11 +140,10 @@ PyAPI_FUNC(void) _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *); #define PyExceptionInstance_Check(x) \ PyType_FastSubclass((x)->ob_type, Py_TPFLAGS_BASE_EXC_SUBCLASS) +PyAPI_FUNC(char *) PyExceptionClass_Name(PyObject *); #ifndef Py_LIMITED_API #define PyExceptionClass_Name(x) \ ((char *)(((PyTypeObject *)(x))->tp_name)) -#else - PyAPI_FUNC(const char *) PyExceptionClass_Name(PyObject *); #endif #define PyExceptionInstance_Class(x) ((PyObject*)((x)->ob_type)) -- cgit v1.2.1