Skip to content

Commit

Permalink
Merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
oehhar committed Dec 10, 2024
2 parents 72fb94a + 7d6679b commit 76a7d69
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions generic/tclsample.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,15 @@ Sample_Init(
Tcl_CmdInfo info;

/*
* This may work with 8.0, but we are using strictly stubs here,
* which requires 8.1.
* Require compatible TCL version.
* Possible version requirement strings:
* - "8.1-": 8.1 and any higher version
* - "8.1": 8.1.x to 8.7.x
* - "8.1 9": allow 8.1.x to 8.7.x and 9.x.x, but not 10.x.x
* Note that Tcl_InitStubs is a macro, which is replaced by a Tcl version
* check only, if TCL_STUBS is not defined (e.g. direct link, static build)
*/
if (Tcl_InitStubs(interp, "8.1", 0) == NULL) {
if (Tcl_InitStubs(interp, "8.1-", 0) == NULL) {
return TCL_ERROR;
}

Expand Down

0 comments on commit 76a7d69

Please sign in to comment.