mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
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.
This commit is contained in:
parent
018cbb15c0
commit
6d7c442e03
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue