aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/pyext.h
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/py/source/pyext.h')
-rw-r--r--externals/grill/py/source/pyext.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/externals/grill/py/source/pyext.h b/externals/grill/py/source/pyext.h
index 4696c72c..da08aa53 100644
--- a/externals/grill/py/source/pyext.h
+++ b/externals/grill/py/source/pyext.h
@@ -114,7 +114,9 @@ private:
virtual void callpy(PyObject *fun,PyObject *args);
static bool stcallpy(PyObject *fun,PyObject *args);
- PyThreadState *pythr;
+#ifndef PY_USE_GIL
+ ThrState pythr;
+#endif
private:
static bool boundmeth(flext_base *,t_symbol *sym,int argc,t_atom *argv,void *data);