[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12926] trunk/blender/source/blender/ python/api2_5x/gen_utils.h: defines for compiling with py 2.4
Campbell Barton
ideasman42 at gmail.com
Mon Dec 17 14:35:07 CET 2007
Revision: 12926
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12926
Author: campbellbarton
Date: 2007-12-17 14:35:07 +0100 (Mon, 17 Dec 2007)
Log Message:
-----------
defines for compiling with py 2.4
Modified Paths:
--------------
trunk/blender/source/blender/python/api2_5x/gen_utils.h
Modified: trunk/blender/source/blender/python/api2_5x/gen_utils.h
===================================================================
--- trunk/blender/source/blender/python/api2_5x/gen_utils.h 2007-12-17 12:54:39 UTC (rev 12925)
+++ trunk/blender/source/blender/python/api2_5x/gen_utils.h 2007-12-17 13:35:07 UTC (rev 12926)
@@ -70,7 +70,6 @@
/* for pre Py 2.5 */
#if PY_VERSION_HEX < 0x02050000
-typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN
#define lenfunc inquiry
@@ -80,9 +79,24 @@
#define intargfunc ssizeargfunc
#define intintargfunc ssizessizeargfunc
#endif
+#endif
+/* Py 2.4 dosnt have these */
+#ifndef ssizessizeargfunc
+#define ssizessizeargfunc intintargfunc
#endif
+#ifndef ssizeobjargproc
+#define ssizeobjargproc intintargfunc
+#endif
+
+#ifndef ssizessizeobjargproc
+#define ssizessizeobjargproc intintobjargproc
+#endif
+
+
+
+
/* name of list of Armature weak refs built into __main__ */
#define ARM_WEAKREF_LIST_NAME "__arm_weakrefs"
More information about the Bf-blender-cvs
mailing list