initmsvcrt(): This no longer compiled on Windows, because
authorTim Peters <tim.peters@gmail.com>
Thu, 19 Jan 2006 15:21:30 +0000 (15:21 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 19 Jan 2006 15:21:30 +0000 (15:21 +0000)
a recent change inserted code before an auto declaration.

PC/msvcrtmodule.c

index 4453023a6a8acd95d26117a78e006db06511c772..3311bd7fb4b2af638376459a875bef24451e7e9d 100755 (executable)
@@ -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);