summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-03-22 15:05:52 +0100
committerStefan Behnel <stefan_ml@behnel.de>2019-03-22 15:05:52 +0100
commitc67d5089650009acebf81ea6ab0daeefc91e58a4 (patch)
treead4a85cdc7790d7944007853db54afc9150d48e1 /Cython/Utility/ModuleSetupCode.c
parentd55bb94a5069120afac499903db349654ba6d29b (diff)
downloadcython-c67d5089650009acebf81ea6ab0daeefc91e58a4.tar.gz
Fix C89 "declarations after code" issue.
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index 72043ca4a..c7197862c 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -1410,8 +1410,9 @@ static CYTHON_INLINE PyThreadState *__Pyx_FastGil_get_tcur(void) {
static PyGILState_STATE __Pyx_FastGil_PyGILState_Ensure(void) {
int current;
+ PyThreadState *tcur;
__Pyx_FastGIL_Remember0();
- PyThreadState *tcur = __Pyx_FastGil_get_tcur();
+ tcur = __Pyx_FastGil_get_tcur();
if (tcur == NULL) {
// Uninitialized, need to initialize now.
return PyGILState_Ensure();