diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2002-07-19 06:55:41 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2002-07-19 06:55:41 (GMT) |
commit | 8235ea1c3a5c57c9279668b5bff3d5f021ceb2d5 (patch) | |
tree | aaab09a7c61fc66bc25bb19cc885692bd0e8e121 /Modules | |
parent | b88169819c301dc77fc2f240c1641acf0b8cf5af (diff) | |
download | cpython-8235ea1c3a5c57c9279668b5bff3d5f021ceb2d5.zip cpython-8235ea1c3a5c57c9279668b5bff3d5f021ceb2d5.tar.gz cpython-8235ea1c3a5c57c9279668b5bff3d5f021ceb2d5.tar.bz2 |
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
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"); |