From: Guido van Rossum Date: Mon, 20 Apr 1998 18:47:52 +0000 (+0000) Subject: Add #ifdefs so Tcl_Finalize isn't referenced when it's not defined. X-Git-Tag: v1.5.2a1~877 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2621637835905f61eb700781100c5c5fa0b57680;p=python Add #ifdefs so Tcl_Finalize isn't referenced when it's not defined. --- diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index d1da5356ac..8def1efe0e 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1548,7 +1548,9 @@ init_tkinter() if (PyErr_Occurred()) return; +#if TKMAJORMINOR >= 8000 Py_AtExit(Tcl_Finalize); +#endif #ifdef macintosh /*