Revision: 19317 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19317 Author: campbellbarton Date: 2009-03-16 18:02:58 +0100 (Mon, 16 Mar 2009)
Log Message: ----------- failed building with python 2.5 and older Modified Paths: -------------- branches/blender2.5/blender/source/blender/python/intern/bpy_compat.h Modified: branches/blender2.5/blender/source/blender/python/intern/bpy_compat.h =================================================================== --- branches/blender2.5/blender/source/blender/python/intern/bpy_compat.h 2009-03-16 17:02:19 UTC (rev 19316) +++ branches/blender2.5/blender/source/blender/python/intern/bpy_compat.h 2009-03-16 17:02:58 UTC (rev 19317) @@ -56,6 +56,18 @@ #endif +#ifndef Py_REFCNT +#define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt) +#endif + +#ifndef Py_TYPE +#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) +#endif + +#ifndef Py_TYPE +#define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size) +#endif + /* older then python 2.6 - define these */ // #if (PY_VERSION_HEX < 0x02060000) // #endif _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs