From: Andrew Svetlov Date: Mon, 27 Apr 2015 14:48:50 +0000 (+0300) Subject: Issue #21354: PyCFunction_New function is exposed by python DLL again. X-Git-Tag: v3.5.0b1~279^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9df36c9456cee5581cae484755147e50f5268f73;p=thirdparty%2FPython%2Fcpython.git Issue #21354: PyCFunction_New function is exposed by python DLL again. --- diff --git a/Misc/NEWS b/Misc/NEWS index e84e142857d3..9e9fd9008ec9 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 f2616d4ef0eb..9b6e5e42eb0b 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);