Fix for old python 2.4

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
sayer/1.4-spce2.6
Peter Lemenkov 16 years ago
parent dd2a283f73
commit 4838586bbb

@ -210,7 +210,11 @@ void IvrFactory::import_object(PyObject* m, const char* name, PyTypeObject* type
return;
}
Py_INCREF(type);
#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5
PyModule_AddObject(m, (char*)name, (PyObject *)type);
#else
PyModule_AddObject(m, name, (PyObject *)type);
#endif
}
void IvrFactory::import_ivr_builtins()

Loading…
Cancel
Save