From: Tim Peters Date: Thu, 19 Jan 2006 15:25:07 +0000 (+0000) Subject: initwinsound(): this no longer compiled on Windows, X-Git-Tag: v2.5a0~795 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=773feaf5298717693edd43fd5c30ad1bcd1d6e6f;p=thirdparty%2FPython%2Fcpython.git initwinsound(): this no longer compiled on Windows, because code snuck in between auto declarations. --- diff --git a/PC/winsound.c b/PC/winsound.c index 81e3917ed66d..bc30ccc584f2 100644 --- a/PC/winsound.c +++ b/PC/winsound.c @@ -217,12 +217,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);