diff options
author | Guido van Rossum <guido@python.org> | 1998-04-20 18:47:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-04-20 18:47:52 (GMT) |
commit | 2621637835905f61eb700781100c5c5fa0b57680 (patch) | |
tree | a55041e5dc92f61ead677a2ec167d21e5b2a2e57 /Modules | |
parent | 23cff3170e6ecd296c25ee81a6933514830393e4 (diff) | |
download | cpython-2621637835905f61eb700781100c5c5fa0b57680.zip cpython-2621637835905f61eb700781100c5c5fa0b57680.tar.gz cpython-2621637835905f61eb700781100c5c5fa0b57680.tar.bz2 |
Add #ifdefs so Tcl_Finalize isn't referenced when it's not defined.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tkinter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index d1da535..8def1ef 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 /* |