From 3c090307a48b0c6a1f034357b751bc9469cc111f Mon Sep 17 00:00:00 2001 From: Andrew Rogers Date: Sun, 25 Nov 2018 04:23:18 +0000 Subject: [PATCH] Fix ISOC build errors. --- Lib/python/pyinit.swg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/python/pyinit.swg b/Lib/python/pyinit.swg index 6516b5159..c155185cd 100644 --- a/Lib/python/pyinit.swg +++ b/Lib/python/pyinit.swg @@ -332,8 +332,6 @@ SWIGEXPORT SWIG_init(void) { PyObject *m, *d, *md, *globals; - (void)globals; - #if PY_VERSION_HEX >= 0x03000000 static struct PyModuleDef SWIG_module = { PyModuleDef_HEAD_INIT, @@ -386,6 +384,8 @@ SWIG_init(void) { assert(metatype); #endif + (void)globals; + /* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */ SWIG_This(); SWIG_Python_TypeCache();