[Python-checkins] r52133 - python/branches/release24-maint/PC/msvcrtmodule.c python/branches/release24-maint/PC/winsound.c

martin.v.loewis python-checkins at python.org
Wed Oct 4 11:12:41 CEST 2006


Author: martin.v.loewis
Date: Wed Oct  4 11:12:40 2006
New Revision: 52133

Modified:
   python/branches/release24-maint/PC/msvcrtmodule.c
   python/branches/release24-maint/PC/winsound.c
Log:
Patch #1570253: Fix build problems caused by backports.

Modified: python/branches/release24-maint/PC/msvcrtmodule.c
==============================================================================
--- python/branches/release24-maint/PC/msvcrtmodule.c	(original)
+++ python/branches/release24-maint/PC/msvcrtmodule.c	Wed Oct  4 11:12:40 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);

Modified: python/branches/release24-maint/PC/winsound.c
==============================================================================
--- python/branches/release24-maint/PC/winsound.c	(original)
+++ python/branches/release24-maint/PC/winsound.c	Wed Oct  4 11:12:40 2006
@@ -215,12 +215,13 @@
 {
 	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);


More information about the Python-checkins mailing list