From: Tim Peters Date: Thu, 19 Jan 2006 15:21:30 +0000 (+0000) Subject: initmsvcrt(): This no longer compiled on Windows, because X-Git-Tag: v2.5a0~796 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2188bf03bc32a5d74f8c06a2ffbaa64c97e76e18;p=thirdparty%2FPython%2Fcpython.git initmsvcrt(): This no longer compiled on Windows, because a recent change inserted code before an auto declaration. --- diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c index 4453023a6a8a..3311bd7fb4b2 100755 --- a/PC/msvcrtmodule.c +++ b/PC/msvcrtmodule.c @@ -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);