Restore the #if around the ui_module declaration, this made compiled fail
with python 2.5 (< 3.0).
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user