File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,7 @@ _get_tcl_lib_path(void)
225225
226226*/
227227
228+ #if TCL_MAJOR_VERSION < 9 /* Tcl 9.x is always threaded */
228229static int
229230_check_tcl_threaded (void )
230231{
@@ -239,6 +240,7 @@ _check_tcl_threaded(void)
239240 if (threaded == NULL ) return 0 ;
240241 else return 1 ;
241242}
243+ #endif
242244
243245static Tcl_ThreadDataKey state_key ;
244246typedef PyThreadState * ThreadSpecificData ;
@@ -3414,11 +3416,13 @@ PyInit__tkinter(void)
34143416{
34153417 PyObject * m , * uexe , * cexe ;
34163418
3419+ #if TCL_MAJOR_VERSION < 9 /* Tcl 9.x is always threaded */
34173420 if (_check_tcl_threaded () == 0 ) {
34183421 PyErr_SetString (PyExc_ImportError ,
34193422 "Tcl must be compiled with thread support" );
34203423 return 0 ;
34213424 }
3425+ #endif
34223426
34233427 m = PyModule_Create (& _tkintermodule );
34243428 if (m == NULL )
You can’t perform that action at this time.
0 commit comments