summaryrefslogtreecommitdiff
path: root/PC/msvcrtmodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-01-19 15:21:30 +0000
committerTim Peters <tim.peters@gmail.com>2006-01-19 15:21:30 +0000
commit54c150deab3982963292bd709bb3b895e01c6366 (patch)
tree25f752fb20edc38aa02d0a2e702cd0b1e1bd5eaa /PC/msvcrtmodule.c
parent5e65d14de2f5961c0bf0ddd4bbba3cc8de460499 (diff)
downloadcpython-54c150deab3982963292bd709bb3b895e01c6366.tar.gz
initmsvcrt(): This no longer compiled on Windows, because
a recent change inserted code before an auto declaration.
Diffstat (limited to 'PC/msvcrtmodule.c')
-rwxr-xr-xPC/msvcrtmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c
index 4453023a6a..3311bd7fb4 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);