From 6d7c442e03b3e850ef0af5a6ee2a4e5947dfb70a Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 26 Aug 2000 07:38:06 +0000 Subject: 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. --- Modules/parsermodule.c | 2 +- Modules/pyexpat.c | 2 +- 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) -- cgit v0.12