diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_sre.c | 3 | ||||
-rw-r--r-- | Modules/pyexpat.c | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index fdc8207..5805d5c 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -2979,8 +2979,7 @@ static PyMethodDef _functions[] = { {NULL, NULL} }; -DL_EXPORT(void) -init_sre(void) +PyMODINIT_FUNC init_sre(void) { PyObject* m; PyObject* d; diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index d65ede9..76abe1f 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -1583,10 +1583,9 @@ get_version_string(void) #define MODULE_INITFUNC initpyexpat #endif -void MODULE_INITFUNC(void); /* avoid compiler warnings */ +PyMODINIT_FUNC MODULE_INITFUNC(void); /* avoid compiler warnings */ -DL_EXPORT(void) -MODULE_INITFUNC(void) +PyMODINIT_FUNC MODULE_INITFUNC(void) { PyObject *m, *d; PyObject *errmod_name = PyString_FromString(MODULE_NAME ".errors"); |