diff options
author | Diego Borghetti <bdiego@gmail.com> | 2009-02-27 17:10:44 +0300 |
---|---|---|
committer | Diego Borghetti <bdiego@gmail.com> | 2009-02-27 17:10:44 +0300 |
commit | b992a449f1cf00321e103cace9a3247ae3592222 (patch) | |
tree | 32b32670ce728ff5398f7a82e7951c4c219ccc30 /source/blender/python/intern | |
parent | 66c2f1c2a320d1da0aeb6f0065af7977c63e611d (diff) |
Restore the #if around the ui_module declaration, this made compiled fail
with python 2.5 (< 3.0).
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r-- | source/blender/python/intern/bpy_ui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_ui.c b/source/blender/python/intern/bpy_ui.c index f27fe8367b1..946d9ec6185 100644 --- a/source/blender/python/intern/bpy_ui.c +++ b/source/blender/python/intern/bpy_ui.c @@ -285,6 +285,7 @@ static struct PyMethodDef ui_methods[] = { {NULL, NULL, 0, NULL} }; +#if PY_VERSION_HEX >= 0x03000000 static struct PyModuleDef ui_module = { PyModuleDef_HEAD_INIT, "bpyui", @@ -293,6 +294,7 @@ static struct PyModuleDef ui_module = { ui_methods, NULL, NULL, NULL, NULL }; +#endif PyObject *BPY_ui_module( void ) { |