diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2015-04-27 14:48:50 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2015-04-27 14:48:50 (GMT) |
commit | 9df36c9456cee5581cae484755147e50f5268f73 (patch) | |
tree | f93cb9fe0960cba2c7dfcb7c65598896a1f65b27 | |
parent | 2034caa0c41b69fd5d8a30c2567b30260c380a5c (diff) | |
download | cpython-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/NEWS | 2 | ||||
-rw-r--r-- | Objects/methodobject.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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); |