summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authornjsmith <njs@pobox.com>2012-09-17 09:25:43 -0700
committernjsmith <njs@pobox.com>2012-09-17 09:25:43 -0700
commit9597b1fdef7c46b0d1b1485fb680099ec7115f76 (patch)
treed1de0cedc4d9c91ee651b8651519e14744c267b4 /numpy/f2py
parent58aefff1ab5a23a42db29479bc05cc93237588e1 (diff)
parentead9e09c5adbc94bfc3c5cc8344089b836cfffd5 (diff)
downloadnumpy-9597b1fdef7c46b0d1b1485fb680099ec7115f76.tar.gz
Merge pull request #419 from stefanv/modinit
Use PyMODINIT_FUNC and update docs accordingly.
Diffstat (limited to 'numpy/f2py')
-rw-r--r--numpy/f2py/rules.py2
-rw-r--r--numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/f2py/rules.py b/numpy/f2py/rules.py
index 83f5811e5..9d943e884 100644
--- a/numpy/f2py/rules.py
+++ b/numpy/f2py/rules.py
@@ -186,7 +186,7 @@ static struct PyModuleDef moduledef = {
#if PY_VERSION_HEX >= 0x03000000
#define RETVAL m
-PyObject *PyInit_#modulename#(void) {
+PyMODINIT_FUNC PyInit_#modulename#(void) {
#else
#define RETVAL
PyMODINIT_FUNC init#modulename#(void) {
diff --git a/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c b/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c
index e75a667eb..9a21f2420 100644
--- a/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c
+++ b/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c
@@ -132,7 +132,7 @@ static struct PyModuleDef moduledef = {
#if PY_VERSION_HEX >= 0x03000000
#define RETVAL m
-PyObject *PyInit_test_array_from_pyobj_ext(void) {
+PyMODINIT_FUNC PyInit_test_array_from_pyobj_ext(void) {
#else
#define RETVAL
PyMODINIT_FUNC inittest_array_from_pyobj_ext(void) {