]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103839: Allow building Tkinter against Tcl 8.7 without external libtommath (GH...
authorChristopher Chavez <chrischavez@gmx.us>
Fri, 19 May 2023 19:09:59 +0000 (14:09 -0500)
committerGitHub <noreply@github.com>
Fri, 19 May 2023 19:09:59 +0000 (15:09 -0400)
Misc/NEWS.d/next/Library/2023-04-25-16-31-00.gh-issue-103839.tpyLhI.rst [new file with mode: 0644]
Modules/_tkinter.c

diff --git a/Misc/NEWS.d/next/Library/2023-04-25-16-31-00.gh-issue-103839.tpyLhI.rst b/Misc/NEWS.d/next/Library/2023-04-25-16-31-00.gh-issue-103839.tpyLhI.rst
new file mode 100644 (file)
index 0000000..1d40a8f
--- /dev/null
@@ -0,0 +1,2 @@
+Avoid compilation error due to tommath.h not being found when building
+Tkinter against Tcl 8.7 built with bundled libtommath.
index 4dada0b28f0559de34d86b8981ae7e7966f19467..49c94447c7237cdc3a11965da376f7e4f9cb51c5 100644 (file)
@@ -60,6 +60,9 @@ Copyright (C) 1994 Steen Lumholt.
 #error "Tk older than 8.5.12 not supported"
 #endif
 
+#ifndef TCL_WITH_EXTERNAL_TOMMATH
+#define TCL_NO_TOMMATH_H
+#endif
 #include <tclTomMath.h>
 
 #if !(defined(MS_WINDOWS) || defined(__CYGWIN__))