2.5 \ Python API
* put back #if PY_VERSION_HEX check again, so we without Python 3.0 can still compile - Campbell, please don't remove it again, ok?
This commit is contained in:
@@ -395,6 +395,7 @@ static struct PyMethodDef ui_methods[] = {
|
||||
{NULL, NULL, 0, NULL}
|
||||
};
|
||||
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
static struct PyModuleDef ui_module = {
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"bpyui",
|
||||
@@ -403,6 +404,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