Fix build breakage for Python 2.2 and earlier - not part of the build.

git-svn-id: svn://10.0.0.236/trunk@159573 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mhammond%skippinet.com.au
2004-07-21 11:43:33 +00:00
parent bbc9765867
commit 86d164fbca

View File

@@ -102,7 +102,9 @@ extern "C" NS_EXPORT nsresult PyXPCOM_NSGetModule(nsIComponentManager *servMgr,
return NS_ERROR_FAILURE;
}
PyEval_InitThreads();
#ifndef PYXPCOM_USE_PYGILSTATE
PyXPCOM_InterpreterState_Ensure();
#endif
PyEval_SaveThread();
}
#endif // LOADER_LINKS_WITH_PYTHON