##// END OF EJS Templates
parsers: fix compiler errors on MSVC 2008...
Matt Harbison -
r20797:e286ab22 default
parent child Browse files
Show More
@@ -1969,18 +1969,22 b' static struct PyModuleDef parsers_module'
1969
1969
1970 PyMODINIT_FUNC PyInit_parsers(void)
1970 PyMODINIT_FUNC PyInit_parsers(void)
1971 {
1971 {
1972 PyObject *mod;
1973
1972 if (check_python_version() == -1)
1974 if (check_python_version() == -1)
1973 return;
1975 return;
1974 PyObject *mod = PyModule_Create(&parsers_module);
1976 mod = PyModule_Create(&parsers_module);
1975 module_init(mod);
1977 module_init(mod);
1976 return mod;
1978 return mod;
1977 }
1979 }
1978 #else
1980 #else
1979 PyMODINIT_FUNC initparsers(void)
1981 PyMODINIT_FUNC initparsers(void)
1980 {
1982 {
1983 PyObject *mod;
1984
1981 if (check_python_version() == -1)
1985 if (check_python_version() == -1)
1982 return;
1986 return;
1983 PyObject *mod = Py_InitModule3("parsers", methods, parsers_doc);
1987 mod = Py_InitModule3("parsers", methods, parsers_doc);
1984 module_init(mod);
1988 module_init(mod);
1985 }
1989 }
1986 #endif
1990 #endif
General Comments 0
You need to be logged in to leave comments. Login now