diff options
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_module.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx index 4a9d1921386f..35986b3646ba 100644 --- a/pyuno/source/module/pyuno_module.cxx +++ b/pyuno/source/module/pyuno_module.cxx @@ -883,7 +883,9 @@ PyObject* PyInit_pyuno() PyUNO_initType(); PyUNOStruct_initType(); // noop when called already, otherwise needed to allow multiple threads +#if PY_VERSION_HEX < 0x03090000 PyEval_InitThreads(); +#endif static struct PyModuleDef moduledef = { PyModuleDef_HEAD_INIT, |