From 8c7d39dd62049b59ecb90958feeef6bc69cb92bd Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Mon, 24 Apr 2006 22:39:21 +0000 Subject: Make ext module typespecs to use PyMODINIT_FUNC that is essential for mingw32 and c++ code combination to work correctly. --- numpy/f2py/tests/array_from_pyobj/wrapmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/f2py/tests/array_from_pyobj') 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; -- cgit v1.2.1