summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 43d89bd9c8..7b7105104a 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -664,7 +664,7 @@ PyErr_WarnEx(PyObject *category, const char *message, Py_ssize_t stack_level)
#undef PyErr_Warn
-int
+PyAPI_FUNC(int)
PyErr_Warn(PyObject *category, char *message)
{
return PyErr_WarnEx(category, message, 1);