[Python-checkins] r42095 - python/trunk/PC/msvcrtmodule.c
tim.peters
python-checkins at python.org
Thu Jan 19 16:21:30 CET 2006
Author: tim.peters
Date: Thu Jan 19 16:21:30 2006
New Revision: 42095
Modified:
python/trunk/PC/msvcrtmodule.c
Log:
initmsvcrt(): This no longer compiled on Windows, because
a recent change inserted code before an auto declaration.
Modified: python/trunk/PC/msvcrtmodule.c
==============================================================================
--- python/trunk/PC/msvcrtmodule.c (original)
+++ python/trunk/PC/msvcrtmodule.c Thu Jan 19 16:21:30 2006
@@ -220,10 +220,11 @@
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);
More information about the Python-checkins
mailing list