summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2019-04-19 17:28:11 +0200
committerArmin Rigo <arigo@tunes.org>2019-04-19 17:28:11 +0200
commit0bbced50cce16e99f0200aa9e0c4074cf7c04676 (patch)
tree63a68753396c28c7b19258114649685d4b21103c
parent7ce157f10d3df5a928492cb2f6bcbdbca1865862 (diff)
downloadcffi-0bbced50cce16e99f0200aa9e0c4074cf7c04676.tar.gz
Windows fix
-rw-r--r--c/call_python.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/call_python.c b/c/call_python.c
index c7b2995..d3d2e17 100644
--- a/c/call_python.c
+++ b/c/call_python.c
@@ -24,6 +24,7 @@ static PyObject *_get_interpstate_dict(void)
PyThreadState *tstate;
PyObject *d, *interpdict;
int err;
+ PyInterpreterState *interp;
tstate = PyThreadState_GET();
if (tstate == NULL) {
@@ -31,7 +32,7 @@ static PyObject *_get_interpstate_dict(void)
return NULL;
}
- PyInterpreterState *interp = tstate->interp;
+ interp = tstate->interp;
#ifdef HAVE_PYINTERPSTATE_GETDICT
interpdict = PyInterpreterState_GetDict(interp); /* shared reference */
#else