diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2015-12-19 14:53:11 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2015-12-19 16:21:23 +0000 |
commit | e9176365751d41c5ff9faa7074d1b48acf3fc59e (patch) | |
tree | c15a9f6cf9fa22744a2e3c3680be697181d3234f /Lib/tcl | |
parent | 6a61f8271f372e74aa0d2d44533dd1d7295eff64 (diff) | |
download | swig-e9176365751d41c5ff9faa7074d1b48acf3fc59e.tar.gz |
Tcl fix when using -Wmissing-field-initializers warnings
Only fixed for Tcl >= 8.5 as prior to this version the Tcl_HashTable structure
changed a few times.
Diffstat (limited to 'Lib/tcl')
-rw-r--r-- | Lib/tcl/tclrun.swg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/tcl/tclrun.swg b/Lib/tcl/tclrun.swg index c91a7e511..fd1052a28 100644 --- a/Lib/tcl/tclrun.swg +++ b/Lib/tcl/tclrun.swg @@ -67,6 +67,12 @@ #define SWIG_GetConstant SWIG_GetConstantObj #define SWIG_Tcl_GetConstant SWIG_Tcl_GetConstantObj +#if TCL_MAJOR_VERSION >= 8 && TCL_MINOR_VERSION >= 5 +#define SWIG_TCL_HASHTABLE_INIT {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} +#else +#define SWIG_TCL_HASHTABLE_INIT {0} +#endif + #include "assert.h" #ifdef __cplusplus |