Use PyMODINIT_FUNC.
This commit is contained in:
parent
17b6d28c64
commit
a18331de4e
|
@ -217,7 +217,7 @@ static struct PyMethodDef msvcrt_functions[] = {
|
|||
{NULL, NULL}
|
||||
};
|
||||
|
||||
__declspec(dllexport) void
|
||||
PyMODINIT_FUNC
|
||||
initmsvcrt(void)
|
||||
{
|
||||
PyObject *m = Py_InitModule("msvcrt", msvcrt_functions);
|
||||
|
|
Loading…
Reference in New Issue