Skip to content

Commit 625887e

Browse files
authored
gh-103839: Allow building Tkinter against Tcl 8.7 without external libtommath (GH-103842)
1 parent 486bc8e commit 625887e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Avoid compilation error due to tommath.h not being found when building
2+
Tkinter against Tcl 8.7 built with bundled libtommath.

Modules/_tkinter.c

+3
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ Copyright (C) 1994 Steen Lumholt.
6060
#error "Tk older than 8.5.12 not supported"
6161
#endif
6262

63+
#ifndef TCL_WITH_EXTERNAL_TOMMATH
64+
#define TCL_NO_TOMMATH_H
65+
#endif
6366
#include <tclTomMath.h>
6467

6568
#if !(defined(MS_WINDOWS) || defined(__CYGWIN__))

0 commit comments

Comments
 (0)