Skip to content

Commit a2019e2

Browse files
committed
gh-124111: Fix TCL 9 threaded detection
1 parent f802c8b commit a2019e2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Modules/_tkinter.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,12 @@ Tkapp_New(const char *screenName, const char *className,
583583

584584
v->interp = Tcl_CreateInterp();
585585
v->wantobjects = wantobjects;
586+
#if TCL_MAJOR_VERSION >= 9
587+
v->threaded = 1;
588+
#else
586589
v->threaded = Tcl_GetVar2Ex(v->interp, "tcl_platform", "threaded",
587590
TCL_GLOBAL_ONLY) != NULL;
591+
#endif
588592
v->thread_id = Tcl_GetCurrentThread();
589593
v->dispatching = 0;
590594
v->trace = NULL;

0 commit comments

Comments
 (0)