Revision: 19843
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19843
Author:   campbellbarton
Date:     2009-04-21 14:48:49 +0200 (Tue, 21 Apr 2009)

Log Message:
-----------
hope this lets py2.3 build again

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/Mathutils.h

Modified: trunk/blender/source/blender/python/api2_2x/Mathutils.h
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Mathutils.h     2009-04-21 
12:42:37 UTC (rev 19842)
+++ trunk/blender/source/blender/python/api2_2x/Mathutils.h     2009-04-21 
12:48:49 UTC (rev 19843)
@@ -83,4 +83,17 @@
 #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 */


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

Reply via email to