diff options
author | Andrew Rogers <andrew.rogers@cantab.net> | 2018-11-25 04:23:18 +0000 |
---|---|---|
committer | Andrew Rogers <andrew.rogers@cantab.net> | 2018-11-25 04:23:18 +0000 |
commit | 3c090307a48b0c6a1f034357b751bc9469cc111f (patch) | |
tree | 9ce00dfabefe39c9a5fec0391a8828d26cdcfdd2 /Lib/python | |
parent | 493d96a732cda7c51fb2a6192a3441053cef8c88 (diff) | |
download | swig-3c090307a48b0c6a1f034357b751bc9469cc111f.tar.gz |
Fix ISOC build errors.
Diffstat (limited to 'Lib/python')
-rw-r--r-- | Lib/python/pyinit.swg | 4 |
1 files 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(); |