Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-04-21 16:48:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-04-21 16:48:49 +0400
commit8b69260f00c32a1ef53c4600684f3271667d800b (patch)
tree236169b048c53ce511bf57da4b7df629d26f69c6 /source
parentaa3c9ad0d8061f0087ba94da3ba96ff03716b717 (diff)
hope this lets py2.3 build again
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/Mathutils.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Mathutils.h b/source/blender/python/api2_2x/Mathutils.h
index abbf14463a6..7406c5c4810 100644
--- a/source/blender/python/api2_2x/Mathutils.h
+++ b/source/blender/python/api2_2x/Mathutils.h
@@ -83,4 +83,17 @@ int EXPP_VectorsAreEqual(float *vecA, float *vecB, int size, int floatSteps);
#define Py_WRAP 1024
#define Py_NEW 2048
+
+/* Mathutils is used by the BGE and Blender so have to define
+ * some things here for luddite mac users of py2.3 */
+#ifndef Py_RETURN_NONE
+#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
+#endif
+#ifndef Py_RETURN_FALSE
+#define Py_RETURN_FALSE return Py_INCREF(Py_False), Py_False
+#endif
+#ifndef Py_RETURN_TRUE
+#define Py_RETURN_TRUE return Py_INCREF(Py_True), Py_True
+#endif
+
#endif /* EXPP_Mathutils_H */