mirror of
https://github.com/python/cpython.git
synced 2025-09-11 03:07:01 +00:00
initmsvcrt(): This no longer compiled on Windows, because
a recent change inserted code before an auto declaration.
This commit is contained in:
parent
2dbf2a98f4
commit
2188bf03bc
1 changed files with 2 additions and 1 deletions
|
@ -220,10 +220,11 @@ static struct PyMethodDef msvcrt_functions[] = {
|
||||||
PyMODINIT_FUNC
|
PyMODINIT_FUNC
|
||||||
initmsvcrt(void)
|
initmsvcrt(void)
|
||||||
{
|
{
|
||||||
|
PyObject *d;
|
||||||
PyObject *m = Py_InitModule("msvcrt", msvcrt_functions);
|
PyObject *m = Py_InitModule("msvcrt", msvcrt_functions);
|
||||||
if (m == NULL)
|
if (m == NULL)
|
||||||
return;
|
return;
|
||||||
PyObject *d = PyModule_GetDict(m);
|
d = PyModule_GetDict(m);
|
||||||
|
|
||||||
/* constants for the locking() function's mode argument */
|
/* constants for the locking() function's mode argument */
|
||||||
insertint(d, "LK_LOCK", _LK_LOCK);
|
insertint(d, "LK_LOCK", _LK_LOCK);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue