diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2006-04-24 22:39:21 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2006-04-24 22:39:21 +0000 |
commit | 8c7d39dd62049b59ecb90958feeef6bc69cb92bd (patch) | |
tree | e297ae47fbdf09a3aaa57669a1decfc863f254e8 /numpy/f2py/rules.py | |
parent | 628087d5e53b152435b71d9330a04719169fa033 (diff) | |
download | numpy-8c7d39dd62049b59ecb90958feeef6bc69cb92bd.tar.gz |
Make ext module typespecs to use PyMODINIT_FUNC that is essential for mingw32 and c++ code combination to work correctly.
Diffstat (limited to 'numpy/f2py/rules.py')
-rw-r--r-- | numpy/f2py/rules.py | 2 |
1 files changed, 1 insertions, 1 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); |