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}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if PY_VERSION_HEX >= 0x03000000
|
||||||
static struct PyModuleDef ui_module = {
|
static struct PyModuleDef ui_module = {
|
||||||
PyModuleDef_HEAD_INIT,
|
PyModuleDef_HEAD_INIT,
|
||||||
"bpyui",
|
"bpyui",
|
||||||
@@ -403,6 +404,7 @@ static struct PyModuleDef ui_module = {
|
|||||||
ui_methods,
|
ui_methods,
|
||||||
NULL, NULL, NULL, NULL
|
NULL, NULL, NULL, NULL
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *BPY_ui_module( void )
|
PyObject *BPY_ui_module( void )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user