parsers: fix compiler errors on MSVC 2008
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 20 Mar 2014 00:01:59 -0400
changeset 20797 e286ab22e461
parent 20796 131f7fe06e9e
child 20798 170d6d591a7d
parsers: fix compiler errors on MSVC 2008 This broke in 3681de20b0a7.
mercurial/parsers.c
--- a/mercurial/parsers.c	Wed Mar 19 18:04:03 2014 -0500
+++ b/mercurial/parsers.c	Thu Mar 20 00:01:59 2014 -0400
@@ -1969,18 +1969,22 @@
 
 PyMODINIT_FUNC PyInit_parsers(void)
 {
+	PyObject *mod;
+
 	if (check_python_version() == -1)
 		return;
-	PyObject *mod = PyModule_Create(&parsers_module);
+	mod = PyModule_Create(&parsers_module);
 	module_init(mod);
 	return mod;
 }
 #else
 PyMODINIT_FUNC initparsers(void)
 {
+	PyObject *mod;
+
 	if (check_python_version() == -1)
 		return;
-	PyObject *mod = Py_InitModule3("parsers", methods, parsers_doc);
+	mod = Py_InitModule3("parsers", methods, parsers_doc);
 	module_init(mod);
 }
 #endif