summaryrefslogtreecommitdiffstats
path: root/PC/msvcrtmodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-01-19 15:21:30 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-01-19 15:21:30 (GMT)
commit2188bf03bc32a5d74f8c06a2ffbaa64c97e76e18 (patch)
tree88f23bc4f701e87c2df47f6d999833802c24231d /PC/msvcrtmodule.c
parent2dbf2a98f4a7a3a6fd151be019795ff8831d27cc (diff)
downloadcpython-2188bf03bc32a5d74f8c06a2ffbaa64c97e76e18.zip
cpython-2188bf03bc32a5d74f8c06a2ffbaa64c97e76e18.tar.gz
cpython-2188bf03bc32a5d74f8c06a2ffbaa64c97e76e18.tar.bz2
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 4453023..3311bd7 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);