Commit 2188bf03 authored by Tim Peters's avatar Tim Peters

initmsvcrt(): This no longer compiled on Windows, because

a recent change inserted code before an auto declaration.
parent 2dbf2a98
......@@ -220,10 +220,11 @@ static struct PyMethodDef msvcrt_functions[] = {
PyMODINIT_FUNC
initmsvcrt(void)
{
PyObject *d;
PyObject *m = Py_InitModule("msvcrt", msvcrt_functions);
if (m == NULL)
return;
PyObject *d = PyModule_GetDict(m);
d = PyModule_GetDict(m);
/* constants for the locking() function's mode argument */
insertint(d, "LK_LOCK", _LK_LOCK);
......
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