Clean up Tcl version docs and handling
We require 8.4 now which simplifies things a bit.
This commit is contained in:
parent
8cc3d04a35
commit
64d72483c6
4 changed files with 19 additions and 15 deletions
|
|
@ -45,7 +45,7 @@ LIBS =
|
|||
# SWIGCC = Compiler used to compile the wrapper file
|
||||
|
||||
SWIG = $(exec_prefix)/bin/swig
|
||||
SWIGOPT = -tcl # use -tcl8 for Tcl 8.0
|
||||
SWIGOPT = -tcl
|
||||
SWIGCC = $(CC)
|
||||
|
||||
# SWIG Library files. Uncomment if rebuilding tclsh
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ SWIGEXPORT int SWIG_init(Tcl_Interp *);
|
|||
|
||||
/* Compatibility version for TCL stubs */
|
||||
#ifndef SWIG_TCL_STUBS_VERSION
|
||||
#define SWIG_TCL_STUBS_VERSION "8.1"
|
||||
#define SWIG_TCL_STUBS_VERSION "8.4"
|
||||
#endif
|
||||
|
||||
%}
|
||||
|
|
@ -100,8 +100,7 @@ SWIGEXPORT int SWIG_init(Tcl_Interp *interp) {
|
|||
size_t i;
|
||||
if (interp == 0) return TCL_ERROR;
|
||||
#ifdef USE_TCL_STUBS
|
||||
/* (char*) cast is required to avoid compiler warning/error for Tcl < 8.4. */
|
||||
if (Tcl_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) {
|
||||
if (Tcl_InitStubs(interp, SWIG_TCL_STUBS_VERSION, 0) == NULL) {
|
||||
return TCL_ERROR;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue