From a50f9a4ea06eb8eb72751eb93713207ee34aab95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Wed, 4 Oct 2006 09:12:40 +0000 Subject: Patch #1570253: Fix build problems caused by backports. --- PC/msvcrtmodule.c | 3 ++- PC/winsound.c | 3 ++- 2 files changed, 4 insertions(+), 2 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); diff --git a/PC/winsound.c b/PC/winsound.c index 0d22fa1..3f86fbe 100644 --- a/PC/winsound.c +++ b/PC/winsound.c @@ -215,12 +215,13 @@ initwinsound(void) { OSVERSIONINFO version; + PyObject *dict; PyObject *module = Py_InitModule3("winsound", sound_methods, sound_module_doc); if (module == NULL) return; - PyObject *dict = PyModule_GetDict(module); + dict = PyModule_GetDict(module); ADD_DEFINE(SND_ASYNC); ADD_DEFINE(SND_NODEFAULT); -- cgit v0.12