Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3.5
Changeset: r90943:85278857eb41
Date: 2017-04-04 08:15 +0200
http://bitbucket.org/pypy/pypy/changeset/85278857eb41/

Log:    Module init functions return PyObject*, on win32 as well

diff --git a/pypy/module/cpyext/include/modsupport.h 
b/pypy/module/cpyext/include/modsupport.h
--- a/pypy/module/cpyext/include/modsupport.h
+++ b/pypy/module/cpyext/include/modsupport.h
@@ -87,9 +87,9 @@
 #ifdef _WIN32
 /* explicitly export since PyAPI_FUNC is usually dllimport */
 #ifdef __cplusplus
-#define PyMODINIT_FUNC extern "C" __declspec(dllexport) void
+#define PyMODINIT_FUNC extern "C" __declspec(dllexport) PyObject*
 #else
-#define PyMODINIT_FUNC __declspec(dllexport) void
+#define PyMODINIT_FUNC __declspec(dllexport) PyObject*
 #endif
 #else
 #ifdef __cplusplus
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to