fix for building with py2.3
authorCampbell Barton <ideasman42@gmail.com>
Thu, 18 Jun 2009 17:34:39 +0000 (17:34 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 18 Jun 2009 17:34:39 +0000 (17:34 +0000)
source/blender/python/generic/BGL.h
source/blender/python/generic/Mathutils.h
source/blender/python/generic/bpy_internal_import.h
source/blender/python/generic/euler.h
source/blender/python/generic/quat.h
source/blender/python/generic/vector.h
source/blender/python/intern/bpy_compat.h
source/gameengine/Expressions/ListValue.cpp

index 345536d64bed1757fc020ecb7485f168e1a96021..0e82ddf6d2991fc4ca31e16870b7cee1241fd973 100755 (executable)
@@ -41,6 +41,7 @@
 #endif
 
 #include <Python.h>
+#include "../intern/bpy_compat.h"
 #include "BIF_gl.h"
 
 PyObject *BGL_Init( const char *from );
index 4c8153e5e542268d004973c43e851868bb34edbe..173922fe09af699e14abb43076756e32d43d4429 100644 (file)
@@ -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"
index 9c3ce572cc45df6e0f055839dd8d6855ee1a6daf..475ec8dd11848cecc16fbdbb5b6aa278cc67232b 100644 (file)
@@ -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 */
 
index f94f060a61d0702cd26099dcaed25b5343284812..773b024f1744f67dc7a3bad55ab8647d4097c1b1 100644 (file)
@@ -32,6 +32,7 @@
 #define EXPP_euler_h
 
 #include <Python.h>
+#include "../intern/bpy_compat.h"
 
 extern PyTypeObject euler_Type;
 
index f98665ded557298d3b07895e8c9491895f757ac2..8a4602c1d8ef45b6dadf5ba37eb759e8ec1b3bb3 100644 (file)
@@ -32,6 +32,7 @@
 #define EXPP_quat_h
 
 #include <Python.h>
+#include "../intern/bpy_compat.h"
 
 extern PyTypeObject quaternion_Type;
 
index e53a0c1f24b409575cbd41ec13abed796b30fb13..930e987fcc7d26345cfcf173463c94e16454ba5f 100644 (file)
@@ -31,6 +31,7 @@
 #define EXPP_vector_h
 
 #include <Python.h>
+#include "../intern/bpy_compat.h"
 
 extern PyTypeObject vector_Type;
 
index ad6b7a5e85c8f8e1476604e7d8e5850b281f7241..3a2d4bda84c51822ccb7df2981df9eb5b3377125 100644 (file)
@@ -88,6 +88,24 @@ typedef Py_ssize_t (*lenfunc)(PyObject *);
 #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);
index ea097ddff5b42daf9e49b57188f81d34b5a00946..d3df36fbff0b5c4b90daaab6605b22982f120679 100644 (file)
@@ -18,6 +18,7 @@
 #include "StringValue.h"
 #include "VoidValue.h"
 #include <algorithm>
+#include <stdint.h>
 #include "BoolValue.h"
 
 #ifdef HAVE_CONFIG_H