diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2016-03-15 11:34:29 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2016-03-15 11:34:29 (GMT) |
commit | f79031f0be1d52a74bb82b935f64b19bf5348e41 (patch) | |
tree | bfc625a2d71cd3c7b1efa26ba11070622ac3a91a | |
parent | 539b0e279d357aa60a8b15ea26b36498101c167f (diff) | |
download | tk-f79031f0be1d52a74bb82b935f64b19bf5348e41.zip tk-f79031f0be1d52a74bb82b935f64b19bf5348e41.tar.gz tk-f79031f0be1d52a74bb82b935f64b19bf5348e41.tar.bz2 |
Make tk.h usable for compilation with Tcl 9.0 (novem) as well.
FossilOrigin-Name: 2e5108a73055dd41cdba9bfee09dcdf2edc2995e
-rw-r--r-- | generic/tk.h | 2 | ||||
-rw-r--r-- | generic/tkTest.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/tk.h b/generic/tk.h index f51d793..9403f31 100644 --- a/generic/tk.h +++ b/generic/tk.h @@ -17,7 +17,7 @@ #define _TK #include <tcl.h> -#if (TCL_MAJOR_VERSION != 8) || (TCL_MINOR_VERSION < 6) +#if (TCL_MAJOR_VERSION < 8) || (TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 6) # error Tk 8.7 must be compiled with tcl.h from Tcl 8.6 or better #endif diff --git a/generic/tkTest.c b/generic/tkTest.c index fa9e073..42fc437 100644 --- a/generic/tkTest.c +++ b/generic/tkTest.c @@ -227,7 +227,7 @@ Tktest_Init( { static int initialized = 0; - if (Tcl_InitStubs(interp, "8.1", 0) == NULL) { + if (Tcl_InitStubs(interp, "8.6", 0) == NULL) { return TCL_ERROR; } if (Tk_InitStubs(interp, TK_VERSION, 0) == NULL) { |