diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-08-26 07:38:06 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-08-26 07:38:06 (GMT) |
commit | 6d7c442e03b3e850ef0af5a6ee2a4e5947dfb70a (patch) | |
tree | 317a02e70d6bf79ea8baf63ce12c61c386c1eaa0 /Modules/parsermodule.c | |
parent | 018cbb15c04aa544708430bb5b91aebe3e808923 (diff) | |
download | cpython-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.
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r-- | Modules/parsermodule.c | 2 |
1 files changed, 1 insertions, 1 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) |