summaryrefslogtreecommitdiff
path: root/numpy/f2py/rules.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-04-24 22:39:21 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-04-24 22:39:21 +0000
commit8c7d39dd62049b59ecb90958feeef6bc69cb92bd (patch)
treee297ae47fbdf09a3aaa57669a1decfc863f254e8 /numpy/f2py/rules.py
parent628087d5e53b152435b71d9330a04719169fa033 (diff)
downloadnumpy-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.py2
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);