Skip to content

Commit

Permalink
gh-103839: Allow building Tkinter against Tcl 8.7 without external li…
Browse files Browse the repository at this point in the history
…btommath (GH-103842)
  • Loading branch information
chrstphrchvz authored May 19, 2023
1 parent 486bc8e commit 625887e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions Modules/_tkinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand Down

0 comments on commit 625887e

Please sign in to comment.