compatibility with py2.3 for GE

needed for os x
This commit is contained in:
JLuc Peuriere 2008-08-14 17:24:39 +00:00
parent 10968fde4d
commit 402449d5ae
1 changed files with 16 additions and 0 deletions

View File

@ -51,5 +51,21 @@
#endif
#endif
/*
Py_RETURN_NONE
Python 2.4 macro.
defined here until we switch to 2.4
*/
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_BuildValue("O", Py_None)
#endif
#ifndef Py_RETURN_FALSE
#define Py_RETURN_FALSE return PyBool_FromLong(0)
#endif
#ifndef Py_RETURN_TRUE
#define Py_RETURN_TRUE return PyBool_FromLong(1)
#endif
#endif // KX_PYTHON_H