From 3b997203019d6f1c70eda1dd8609dafbfd9ca399 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Tue, 1 Aug 2023 06:46:56 +0000 Subject: Prevent Tcl 8.6 header-file to be usable for Tcl 9 compiles. (see [6f22c7a1fc]) --- generic/tcl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/generic/tcl.h b/generic/tcl.h index 3de3208..2b6d8b7 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -48,7 +48,12 @@ extern "C" { * tools/tcl.hpj.in (not patchlevel, for windows installer) */ -#define TCL_MAJOR_VERSION 8 +#if !defined(TCL_MAJOR_VERSION) +# define TCL_MAJOR_VERSION 8 +#endif +#if TCL_MAJOR_VERSION != 8 +# error "This header-file is for Tcl 8 only" +#endif #define TCL_MINOR_VERSION 6 #define TCL_RELEASE_LEVEL TCL_FINAL_RELEASE #define TCL_RELEASE_SERIAL 13 -- cgit v0.12