summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2000-08-26 07:38:06 (GMT)
committerTim Peters <tim.peters@gmail.com>2000-08-26 07:38:06 (GMT)
commit6d7c442e03b3e850ef0af5a6ee2a4e5947dfb70a (patch)
tree317a02e70d6bf79ea8baf63ce12c61c386c1eaa0
parent018cbb15c04aa544708430bb5b91aebe3e808923 (diff)
downloadcpython-6d7c442e03b3e850ef0af5a6ee2a4e5947dfb70a.zip
cpython-6d7c442e03b3e850ef0af5a6ee2a4e5947dfb70a.tar.gz
cpython-6d7c442e03b3e850ef0af5a6ee2a4e5947dfb70a.tar.bz2
Try to supply a prototype for the module init function but avoid
Windows "inconsistent linkage" warnings at the same time. I agree with Mark Hammond that the whole DL_IMPORT/DL_EXPORT macro system needs an overhaul; this is just an expedient hack until then.
-rw-r--r--Modules/parsermodule.c2
-rw-r--r--Modules/pyexpat.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index 50161cf..d946608 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -2846,7 +2846,7 @@ static PyMethodDef parser_functions[] = {
};
-DL_IMPORT(void) initparser(void);
+DL_EXPORT(void) initparser(void); /* supply a prototype */
DL_EXPORT(void)
initparser(void)
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 8b29d4b..28fb42b 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -854,7 +854,7 @@ static char pyexpat_module_documentation[] =
/* Initialization function for the module */
-DL_IMPORT(void) initpyexpat(void);
+DL_EXPORT(void) initpyexpat(void); /* supply a prototype */
DL_EXPORT(void)
initpyexpat(void)