Module: sems Branch: 1.2 Commit: 837fed369958a3153d3682007cf7ce70c6820987 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=837fed369958a3153d3682007cf7ce70c6820987
Author: Peter Lemenkov <[email protected]> Committer: Peter Lemenkov <[email protected]> Date: Mon Sep 13 18:07:33 2010 +0400 Fix for old python 2.4 Signed-off-by: Peter Lemenkov <[email protected]> --- apps/ivr/Ivr.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/apps/ivr/Ivr.cpp b/apps/ivr/Ivr.cpp index f4ed59f..efa27f9 100644 --- a/apps/ivr/Ivr.cpp +++ b/apps/ivr/Ivr.cpp @@ -229,7 +229,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() _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
