From 9df36c9456cee5581cae484755147e50f5268f73 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 27 Apr 2015 17:48:50 +0300 Subject: Issue #21354: PyCFunction_New function is exposed by python DLL again. --- Misc/NEWS | 2 ++ Objects/methodobject.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v0.12