summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2015-04-27 14:48:50 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2015-04-27 14:48:50 (GMT)
commit9df36c9456cee5581cae484755147e50f5268f73 (patch)
treef93cb9fe0960cba2c7dfcb7c65598896a1f65b27
parent2034caa0c41b69fd5d8a30c2567b30260c380a5c (diff)
downloadcpython-9df36c9456cee5581cae484755147e50f5268f73.zip
cpython-9df36c9456cee5581cae484755147e50f5268f73.tar.gz
cpython-9df36c9456cee5581cae484755147e50f5268f73.tar.bz2
Issue #21354: PyCFunction_New function is exposed by python DLL again.
-rw-r--r--Misc/NEWS2
-rw-r--r--Objects/methodobject.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index e84e142..9e9fd90 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,8 @@ Core and Builtins
- Issue #24044: Fix possible null pointer dereference in list.sort in out of
memory conditions.
+- Issue #21354: PyCFunction_New function is exposed by python DLL again.
+
Library
-------
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index f2616d4..9b6e5e4 100644
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -16,7 +16,7 @@ static int numfree = 0;
/* undefine macro trampoline to PyCFunction_NewEx */
#undef PyCFunction_New
-PyObject *
+PyAPI_FUNC(PyObject *)
PyCFunction_New(PyMethodDef *ml, PyObject *self)
{
return PyCFunction_NewEx(ml, self, NULL);