summaryrefslogtreecommitdiff
path: root/cffi
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2019-04-19 17:44:10 +0200
committerArmin Rigo <arigo@tunes.org>2019-04-19 17:44:10 +0200
commit163a3ec7c2f009cfa3b6a587ed6fade018b085ff (patch)
tree29410111132c0588d13579b8624e982215b41f58 /cffi
parent0bbced50cce16e99f0200aa9e0c4074cf7c04676 (diff)
downloadcffi-163a3ec7c2f009cfa3b6a587ed6fade018b085ff.tar.gz
Windows fix
Diffstat (limited to 'cffi')
-rw-r--r--cffi/_embedding.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cffi/_embedding.h b/cffi/_embedding.h
index fb851bb..30842c1 100644
--- a/cffi/_embedding.h
+++ b/cffi/_embedding.h
@@ -145,6 +145,7 @@ static int _cffi_initialize_python(void)
int result;
PyGILState_STATE state;
PyObject *pycode=NULL, *global_dict=NULL, *x;
+ PyObject *builtins;
state = PyGILState_Ensure();
@@ -169,7 +170,7 @@ static int _cffi_initialize_python(void)
global_dict = PyDict_New();
if (global_dict == NULL)
goto error;
- PyObject *builtins = PyEval_GetBuiltins();
+ builtins = PyEval_GetBuiltins();
if (builtins == NULL)
goto error;
if (PyDict_SetItemString(global_dict, "__builtins__", builtins) < 0)