Kaydet (Commit) 6d7c442e authored tarafından Tim Peters's avatar Tim Peters

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.
üst 018cbb15
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment