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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-06-18 21:34:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-06-18 21:34:39 +0400
commit025b6dcbc3f6303e051354cbfb694ee810934979 (patch)
tree394a488a45284c4a8d703958a92c4d780262a74e
parent122b206de35b72cd65934a3183331a93674559a2 (diff)
fix for building with py2.3
-rwxr-xr-xsource/blender/python/generic/BGL.h1
-rw-r--r--source/blender/python/generic/Mathutils.h1
-rw-r--r--source/blender/python/generic/bpy_internal_import.h1
-rw-r--r--source/blender/python/generic/euler.h1
-rw-r--r--source/blender/python/generic/quat.h1
-rw-r--r--source/blender/python/generic/vector.h1
-rw-r--r--source/blender/python/intern/bpy_compat.h18
-rw-r--r--source/gameengine/Expressions/ListValue.cpp1
8 files changed, 25 insertions, 0 deletions
diff --git a/source/blender/python/generic/BGL.h b/source/blender/python/generic/BGL.h
index 345536d64be..0e82ddf6d29 100755
--- a/source/blender/python/generic/BGL.h
+++ b/source/blender/python/generic/BGL.h
@@ -41,6 +41,7 @@
#endif
#include <Python.h>
+#include "../intern/bpy_compat.h"
#include "BIF_gl.h"
PyObject *BGL_Init( const char *from );
diff --git a/source/blender/python/generic/Mathutils.h b/source/blender/python/generic/Mathutils.h
index 4c8153e5e54..173922fe09a 100644
--- a/source/blender/python/generic/Mathutils.h
+++ b/source/blender/python/generic/Mathutils.h
@@ -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"
diff --git a/source/blender/python/generic/bpy_internal_import.h b/source/blender/python/generic/bpy_internal_import.h
index 9c3ce572cc4..475ec8dd118 100644
--- a/source/blender/python/generic/bpy_internal_import.h
+++ b/source/blender/python/generic/bpy_internal_import.h
@@ -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 */
diff --git a/source/blender/python/generic/euler.h b/source/blender/python/generic/euler.h
index f94f060a61d..773b024f174 100644
--- a/source/blender/python/generic/euler.h
+++ b/source/blender/python/generic/euler.h
@@ -32,6 +32,7 @@
#define EXPP_euler_h
#include <Python.h>
+#include "../intern/bpy_compat.h"
extern PyTypeObject euler_Type;
diff --git a/source/blender/python/generic/quat.h b/source/blender/python/generic/quat.h
index f98665ded55..8a4602c1d8e 100644
--- a/source/blender/python/generic/quat.h
+++ b/source/blender/python/generic/quat.h
@@ -32,6 +32,7 @@
#define EXPP_quat_h
#include <Python.h>
+#include "../intern/bpy_compat.h"
extern PyTypeObject quaternion_Type;
diff --git a/source/blender/python/generic/vector.h b/source/blender/python/generic/vector.h
index e53a0c1f24b..930e987fcc7 100644
--- a/source/blender/python/generic/vector.h
+++ b/source/blender/python/generic/vector.h
@@ -31,6 +31,7 @@
#define EXPP_vector_h
#include <Python.h>
+#include "../intern/bpy_compat.h"
extern PyTypeObject vector_Type;
diff --git a/source/blender/python/intern/bpy_compat.h b/source/blender/python/intern/bpy_compat.h
index ad6b7a5e85c..3a2d4bda84c 100644
--- a/source/blender/python/intern/bpy_compat.h
+++ b/source/blender/python/intern/bpy_compat.h
@@ -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);
diff --git a/source/gameengine/Expressions/ListValue.cpp b/source/gameengine/Expressions/ListValue.cpp
index ea097ddff5b..d3df36fbff0 100644
--- a/source/gameengine/Expressions/ListValue.cpp
+++ b/source/gameengine/Expressions/ListValue.cpp
@@ -18,6 +18,7 @@
#include "StringValue.h"
#include "VoidValue.h"
#include <algorithm>
+#include <stdint.h>
#include "BoolValue.h"
#ifdef HAVE_CONFIG_H