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-04-29 20:54:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-04-29 20:54:45 +0400
commit81dfdf8374382c766c88bbed421ed70c02565234 (patch)
tree397ddc7c0a25bd554f8a83313100660ec2b006a8 /source/gameengine/GameLogic/SCA_NORController.cpp
parentd6c525d624ea98bf6eeac1a7f3483f41fed1ef4f (diff)
ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing)
. No changes for py2.x.
Diffstat (limited to 'source/gameengine/GameLogic/SCA_NORController.cpp')
-rw-r--r--source/gameengine/GameLogic/SCA_NORController.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/gameengine/GameLogic/SCA_NORController.cpp b/source/gameengine/GameLogic/SCA_NORController.cpp
index 918e6a348ae..a0e9fcb239c 100644
--- a/source/gameengine/GameLogic/SCA_NORController.cpp
+++ b/source/gameengine/GameLogic/SCA_NORController.cpp
@@ -107,8 +107,13 @@ CValue* SCA_NORController::GetReplica()
/* Integration hooks ------------------------------------------------------- */
PyTypeObject SCA_NORController::Type = {
- PyObject_HEAD_INIT(NULL)
- 0,
+#if (PY_VERSION_HEX >= 0x02060000)
+ PyVarObject_HEAD_INIT(NULL, 0)
+#else
+ /* python 2.5 and below */
+ PyObject_HEAD_INIT( NULL ) /* required py macro */
+ 0, /* ob_size */
+#endif
"SCA_NORController",
sizeof(PyObjectPlus_Proxy),
0,