gh-103839: Allow building Tkinter against Tcl 8.7 without external libtommath (GH-103842)

This commit is contained in:
Christopher Chavez 2023-05-19 14:09:59 -05:00 committed by GitHub
parent 486bc8e030
commit 625887e6df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View 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__))