From: Tim Peters Date: Sat, 26 Aug 2000 07:38:06 +0000 (+0000) Subject: Try to supply a prototype for the module init function but avoid X-Git-Tag: v2.0b1~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d7c442e03b3e850ef0af5a6ee2a4e5947dfb70a;p=python 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. --- diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 50161cffed..d946608dac 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 8b29d4b5ad..28fb42b193 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)