summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-20 18:47:52 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-20 18:47:52 (GMT)
commit2621637835905f61eb700781100c5c5fa0b57680 (patch)
treea55041e5dc92f61ead677a2ec167d21e5b2a2e57
parent23cff3170e6ecd296c25ee81a6933514830393e4 (diff)
downloadcpython-2621637835905f61eb700781100c5c5fa0b57680.zip
cpython-2621637835905f61eb700781100c5c5fa0b57680.tar.gz
cpython-2621637835905f61eb700781100c5c5fa0b57680.tar.bz2
Add #ifdefs so Tcl_Finalize isn't referenced when it's not defined.
-rw-r--r--Modules/_tkinter.c2
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
/*