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-03-16 20:02:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-03-16 20:02:58 +0300
commit929c3fe91a2d73b5be476ebbc878f48f8b653e4b (patch)
tree96015b30dfca44728b909ce827273166824fe7d3 /source/blender/python/intern
parent26ff236fb4493e5daf35a69a132ba0d90aeca18b (diff)
failed building with python 2.5 and older
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r--source/blender/python/intern/bpy_compat.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_compat.h b/source/blender/python/intern/bpy_compat.h
index e2337db4925..0fbb4aede7d 100644
--- a/source/blender/python/intern/bpy_compat.h
+++ b/source/blender/python/intern/bpy_compat.h
@@ -56,6 +56,18 @@
#endif
+#ifndef Py_REFCNT
+#define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
+#endif
+
+#ifndef Py_TYPE
+#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
+#endif
+
+#ifndef Py_TYPE
+#define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
+#endif
+
/* older then python 2.6 - define these */
// #if (PY_VERSION_HEX < 0x02060000)
// #endif