Revision: 21427
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21427
Author:   ton
Date:     2009-07-08 16:26:43 +0200 (Wed, 08 Jul 2009)

Log Message:
-----------
2.5

Copied some Python compat stuff to get py 2.3 running... just 
googled for it on python.org mailing list.

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-07-08 12:30:09 UTC (rev 21426)
+++ branches/blender2.5/blender/source/blender/python/intern/bpy_compat.h       
2009-07-08 14:26:43 UTC (rev 21427)
@@ -85,6 +85,12 @@
 #ifndef Py_RETURN_TRUE
 #define Py_RETURN_TRUE  return PyBool_FromLong(1)
 #endif
+
+#define PyInt_FromSsize_t PyInt_FromLong
+#define PyNumber_AsSsize_t(ob, exc) PyInt_AsLong(ob)
+#define PyIndex_Check(ob) PyInt_Check(ob)
+
+
 #endif
 
 


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to