summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-01-19 15:25:07 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-01-19 15:25:07 (GMT)
commit773feaf5298717693edd43fd5c30ad1bcd1d6e6f (patch)
tree58ae5537e650ffaba26948eca2444f9c80e5c7a7 /PC
parent2188bf03bc32a5d74f8c06a2ffbaa64c97e76e18 (diff)
downloadcpython-773feaf5298717693edd43fd5c30ad1bcd1d6e6f.zip
cpython-773feaf5298717693edd43fd5c30ad1bcd1d6e6f.tar.gz
cpython-773feaf5298717693edd43fd5c30ad1bcd1d6e6f.tar.bz2
initwinsound(): this no longer compiled on Windows,
because code snuck in between auto declarations.
Diffstat (limited to 'PC')
-rw-r--r--PC/winsound.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/PC/winsound.c b/PC/winsound.c
index 81e3917..bc30ccc 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);