aboutsummaryrefslogtreecommitdiffstats
path: root/3rdparty
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2021-01-02 10:22:51 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2021-01-02 10:22:51 +0100
commit61b07bc9a664d6a88b85aae99f9756d7569688a9 (patch)
tree1db418e9a889dc6fbe6199c5259aac9bd8cbb32f /3rdparty
parente76cdab6dd77bad411e6ac9372ee527aff89ef17 (diff)
downloadnextpnr-61b07bc9a664d6a88b85aae99f9756d7569688a9.tar.gz
nextpnr-61b07bc9a664d6a88b85aae99f9756d7569688a9.tar.bz2
nextpnr-61b07bc9a664d6a88b85aae99f9756d7569688a9.zip
PyEval_InitThreads only for older than 3.9
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/python-console/modified/pyinterpreter.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/3rdparty/python-console/modified/pyinterpreter.cc b/3rdparty/python-console/modified/pyinterpreter.cc
index bf6d9620..c222c9ad 100644
--- a/3rdparty/python-console/modified/pyinterpreter.cc
+++ b/3rdparty/python-console/modified/pyinterpreter.cc
@@ -122,7 +122,9 @@ void pyinterpreter_preinit()
void pyinterpreter_initialize()
{
+#if PY_VERSION_HEX < 0x03090000
PyEval_InitThreads();
+#endif
m_threadState = PyEval_SaveThread();
PyEval_AcquireThread(m_threadState);