not defined on Windows, even if that configuration is probably not
supported at all.
static void LoadPython(void)
{
if (!Py_IsInitialized()) {
+#ifdef WITH_THREAD
PyEval_InitThreads();
+#endif
Py_Initialize();
}
}
/* We absolutely have to release the GIL during COM method calls,
otherwise we may get a deadlock!
*/
+#ifdef WITH_THREAD
Py_BEGIN_ALLOW_THREADS
+#endif
hr = pIunk->lpVtbl->QueryInterface(pIunk, &IID_ISupportErrorInfo, (void **)&psei);
if (FAILED(hr))
pei->lpVtbl->Release(pei);
failed:
+#ifdef WITH_THREAD
Py_END_ALLOW_THREADS
+#endif
progid = NULL;
ProgIDFromCLSID(&guid, &progid);