Restore the #if around the ui_module declaration, this made compiled fail

with python 2.5 (< 3.0).
This commit is contained in:
2009-02-27 14:10:44 +00:00
parent 66c2f1c2a3
commit b992a449f1

View File

@@ -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 )
{