diff options
author | Armin Rigo <arigo@tunes.org> | 2019-04-19 17:44:10 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2019-04-19 17:44:10 +0200 |
commit | 163a3ec7c2f009cfa3b6a587ed6fade018b085ff (patch) | |
tree | 29410111132c0588d13579b8624e982215b41f58 /cffi | |
parent | 0bbced50cce16e99f0200aa9e0c4074cf7c04676 (diff) | |
download | cffi-163a3ec7c2f009cfa3b6a587ed6fade018b085ff.tar.gz |
Windows fix
Diffstat (limited to 'cffi')
-rw-r--r-- | cffi/_embedding.h | 3 |
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) |