]> granicus.if.org Git - python/commitdiff
Issue #21354: PyCFunction_New function is exposed by python DLL again.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 27 Apr 2015 14:48:50 +0000 (17:48 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 27 Apr 2015 14:48:50 +0000 (17:48 +0300)
Misc/NEWS
Objects/methodobject.c

index e84e142857d37243423a2caa85cb22cd5a942700..9e9fd9008ec933fd07a29fa40db0a963cb05ee96 100644 (file)
--- 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
 -------
 
index f2616d4ef0eb4e618b3053a6bab87345753e018d..9b6e5e42eb0b4af4e44d452b16a288c67c7eec1c 100644 (file)
@@ -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);