diff --git a/source/blender/python/api2_2x/gen_utils.h b/source/blender/python/api2_2x/gen_utils.h index 7b64944a6da..d0e618635a5 100644 --- a/source/blender/python/api2_2x/gen_utils.h +++ b/source/blender/python/api2_2x/gen_utils.h @@ -44,6 +44,15 @@ #define Py_WRAP 1024 #define Py_NEW 2048 +/* + Py_RETURN_NONE + Python 2.4 macro. + defined here until we switch to 2.4 +*/ +#ifndef Py_RETURN_NONE +#define Py_RETURN_NONE Py_INCREF( Py_None ); return Py_None +#endif + int EXPP_FloatsAreEqual(float A, float B, int floatSteps); int EXPP_VectorsAreEqual(float *vecA, float *vecB, int size, int floatSteps);