summaryrefslogtreecommitdiff
path: root/numpy/doc/pyrex/numpyx.c
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/doc/pyrex/numpyx.c
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/doc/pyrex/numpyx.c')
-rw-r--r--numpy/doc/pyrex/numpyx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/doc/pyrex/numpyx.c b/numpy/doc/pyrex/numpyx.c
index 0e2658242..45e22594e 100644
--- a/numpy/doc/pyrex/numpyx.c
+++ b/numpy/doc/pyrex/numpyx.c
@@ -778,8 +778,8 @@ static struct PyMethodDef __pyx_methods[] = {
{0, 0, 0, 0}
};
-DL_EXPORT(void) initnumpyx(void); /*proto*/
-DL_EXPORT(void) initnumpyx(void) {
+PyMODINIT_FUNC initnumpyx(void); /*proto*/
+PyMODINIT_FUNC initnumpyx(void) {
PyObject *__pyx_1 = 0;
__pyx_m = Py_InitModule4("numpyx", __pyx_methods, 0, 0, PYTHON_API_VERSION);
if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; goto __pyx_L1;};