[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20984] branches/blender2.5/blender/source : fix for building with py2.3

Campbell Barton ideasman42 at gmail.com
Thu Jun 18 19:34:39 CEST 2009


Revision: 20984
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20984
Author:   campbellbarton
Date:     2009-06-18 19:34:39 +0200 (Thu, 18 Jun 2009)

Log Message:
-----------
fix for building with py2.3

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/python/generic/BGL.h
    branches/blender2.5/blender/source/blender/python/generic/Mathutils.h
    branches/blender2.5/blender/source/blender/python/generic/bpy_internal_import.h
    branches/blender2.5/blender/source/blender/python/generic/euler.h
    branches/blender2.5/blender/source/blender/python/generic/quat.h
    branches/blender2.5/blender/source/blender/python/generic/vector.h
    branches/blender2.5/blender/source/blender/python/intern/bpy_compat.h
    branches/blender2.5/blender/source/gameengine/Expressions/ListValue.cpp

Modified: branches/blender2.5/blender/source/blender/python/generic/BGL.h
===================================================================
--- branches/blender2.5/blender/source/blender/python/generic/BGL.h	2009-06-18 17:00:47 UTC (rev 20983)
+++ branches/blender2.5/blender/source/blender/python/generic/BGL.h	2009-06-18 17:34:39 UTC (rev 20984)
@@ -41,6 +41,7 @@
 #endif
 
 #include <Python.h>
+#include "../intern/bpy_compat.h"
 #include "BIF_gl.h"
 
 PyObject *BGL_Init( const char *from );

Modified: branches/blender2.5/blender/source/blender/python/generic/Mathutils.h
===================================================================
--- branches/blender2.5/blender/source/blender/python/generic/Mathutils.h	2009-06-18 17:00:47 UTC (rev 20983)
+++ branches/blender2.5/blender/source/blender/python/generic/Mathutils.h	2009-06-18 17:34:39 UTC (rev 20984)
@@ -32,6 +32,7 @@
 #define EXPP_Mathutils_H
 
 #include <Python.h>
+#include "../intern/bpy_compat.h"
 #include "vector.h"
 #include "matrix.h"
 #include "quat.h"

Modified: branches/blender2.5/blender/source/blender/python/generic/bpy_internal_import.h
===================================================================
--- branches/blender2.5/blender/source/blender/python/generic/bpy_internal_import.h	2009-06-18 17:00:47 UTC (rev 20983)
+++ branches/blender2.5/blender/source/blender/python/generic/bpy_internal_import.h	2009-06-18 17:34:39 UTC (rev 20984)
@@ -32,6 +32,7 @@
 #define EXPP_bpy_import_h
 
 #include <Python.h>
+#include "../intern/bpy_compat.h"
 #include "compile.h"		/* for the PyCodeObject */
 #include "eval.h"		/* for PyEval_EvalCode */
 

Modified: branches/blender2.5/blender/source/blender/python/generic/euler.h
===================================================================
--- branches/blender2.5/blender/source/blender/python/generic/euler.h	2009-06-18 17:00:47 UTC (rev 20983)
+++ branches/blender2.5/blender/source/blender/python/generic/euler.h	2009-06-18 17:34:39 UTC (rev 20984)
@@ -32,6 +32,7 @@
 #define EXPP_euler_h
 
 #include <Python.h>
+#include "../intern/bpy_compat.h"
 
 extern PyTypeObject euler_Type;
 

Modified: branches/blender2.5/blender/source/blender/python/generic/quat.h
===================================================================
--- branches/blender2.5/blender/source/blender/python/generic/quat.h	2009-06-18 17:00:47 UTC (rev 20983)
+++ branches/blender2.5/blender/source/blender/python/generic/quat.h	2009-06-18 17:34:39 UTC (rev 20984)
@@ -32,6 +32,7 @@
 #define EXPP_quat_h
 
 #include <Python.h>
+#include "../intern/bpy_compat.h"
 
 extern PyTypeObject quaternion_Type;
 

Modified: branches/blender2.5/blender/source/blender/python/generic/vector.h
===================================================================
--- branches/blender2.5/blender/source/blender/python/generic/vector.h	2009-06-18 17:00:47 UTC (rev 20983)
+++ branches/blender2.5/blender/source/blender/python/generic/vector.h	2009-06-18 17:34:39 UTC (rev 20984)
@@ -31,6 +31,7 @@
 #define EXPP_vector_h
 
 #include <Python.h>
+#include "../intern/bpy_compat.h"
 
 extern PyTypeObject vector_Type;
 

Modified: branches/blender2.5/blender/source/blender/python/intern/bpy_compat.h
===================================================================
--- branches/blender2.5/blender/source/blender/python/intern/bpy_compat.h	2009-06-18 17:00:47 UTC (rev 20983)
+++ branches/blender2.5/blender/source/blender/python/intern/bpy_compat.h	2009-06-18 17:34:39 UTC (rev 20984)
@@ -88,6 +88,24 @@
 #endif
 
 
+#ifndef ssizeargfunc
+#define ssizeargfunc intargfunc
+#endif
+
+#ifndef ssizessizeargfunc
+#define ssizessizeargfunc intintargfunc
+#endif
+
+#ifndef ssizeobjargproc
+#define ssizeobjargproc intobjargproc
+#endif
+
+#ifndef ssizessizeobjargproc
+#define ssizessizeobjargproc intintobjargproc
+#endif
+
+
+
 /* defined in bpy_util.c */
 #if PY_VERSION_HEX < 0x03000000
 PyObject *Py_CmpToRich(int op, int cmp);

Modified: branches/blender2.5/blender/source/gameengine/Expressions/ListValue.cpp
===================================================================
--- branches/blender2.5/blender/source/gameengine/Expressions/ListValue.cpp	2009-06-18 17:00:47 UTC (rev 20983)
+++ branches/blender2.5/blender/source/gameengine/Expressions/ListValue.cpp	2009-06-18 17:34:39 UTC (rev 20984)
@@ -18,6 +18,7 @@
 #include "StringValue.h"
 #include "VoidValue.h"
 #include <algorithm>
+#include <stdint.h>
 #include "BoolValue.h"
 
 #ifdef HAVE_CONFIG_H





More information about the Bf-blender-cvs mailing list