From b992a449f1cf00321e103cace9a3247ae3592222 Mon Sep 17 00:00:00 2001 From: Diego Borghetti Date: Fri, 27 Feb 2009 14:10:44 +0000 Subject: Restore the #if around the ui_module declaration, this made compiled fail with python 2.5 (< 3.0). --- source/blender/python/intern/bpy_ui.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/python/intern') 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 ) { -- cgit v1.2.3