Skip to content

Commit 83999e8

Browse files
committed
Ticket [54430c23e3]: support non-stubs build
1 parent 64200f8 commit 83999e8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

generic/tclsample.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,12 @@ Sample_Init(
366366
* - "8.1": 8.1.x to 8.7.x
367367
* - "8.1 9": allow 8.1.x to 8.7.x and 9.x.x, but not 10.x.x
368368
*/
369-
if (Tcl_InitStubs(interp, "8.1-", 0) == NULL) {
369+
#ifdef USE_TCL_STUBS
370+
if (Tcl_InitStubs(interp, "8.1-", 0) == NULL)
371+
#else
372+
if (Tcl_PkgRequire(interp, "Tcl", "8.1-", 0) == NULL)
373+
#endif
374+
{
370375
return TCL_ERROR;
371376
}
372377

0 commit comments

Comments
 (0)