diff options
Diffstat (limited to 'numpy/f2py')
-rw-r--r-- | numpy/f2py/rules.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/array_from_pyobj/wrapmodule.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/f2py/rules.py b/numpy/f2py/rules.py index b8581f7a7..e322226c2 100644 --- a/numpy/f2py/rules.py +++ b/numpy/f2py/rules.py @@ -167,7 +167,7 @@ static PyMethodDef f2py_module_methods[] = { \t{NULL,NULL} }; -DL_EXPORT(int) init#modulename#(void) { +PyMODINIT_FUNC init#modulename#(void) { \tint i; \tPyObject *m,*d, *s; \tm = #modulename#_module = Py_InitModule(\"#modulename#\", f2py_module_methods); diff --git a/numpy/f2py/tests/array_from_pyobj/wrapmodule.c b/numpy/f2py/tests/array_from_pyobj/wrapmodule.c index 07d0135cc..58d7e6da4 100644 --- a/numpy/f2py/tests/array_from_pyobj/wrapmodule.c +++ b/numpy/f2py/tests/array_from_pyobj/wrapmodule.c @@ -114,7 +114,7 @@ static PyMethodDef f2py_module_methods[] = { {NULL,NULL} }; -DL_EXPORT(void) initwrap(void) { +PyMODINIT_FUNC initwrap(void) { PyObject *m,*d, *s; m = wrap_module = Py_InitModule("wrap", f2py_module_methods); PyFortran_Type.ob_type = &PyType_Type; |