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.
This commit is contained in:
William S Fulton 2015-12-19 14:53:11 +00:00
commit e917636575
2 changed files with 7 additions and 1 deletions

View file

@ -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