Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2188bf0

Browse files
committed
initmsvcrt(): This no longer compiled on Windows, because
a recent change inserted code before an auto declaration.
1 parent 2dbf2a9 commit 2188bf0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PC/msvcrtmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,11 @@ static struct PyMethodDef msvcrt_functions[] = {
220220
PyMODINIT_FUNC
221221
initmsvcrt(void)
222222
{
223+
PyObject *d;
223224
PyObject *m = Py_InitModule("msvcrt", msvcrt_functions);
224225
if (m == NULL)
225226
return;
226-
PyObject *d = PyModule_GetDict(m);
227+
d = PyModule_GetDict(m);
227228

228229
/* constants for the locking() function's mode argument */
229230
insertint(d, "LK_LOCK", _LK_LOCK);

0 commit comments

Comments
 (0)