diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-08-01 06:46:56 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-08-01 06:46:56 (GMT) |
| commit | 3b997203019d6f1c70eda1dd8609dafbfd9ca399 (patch) | |
| tree | 6d227ad30db3fc4a3f8b7734fce86671df850ca7 | |
| parent | 60c1d787b1f560b078850157996e356b6cc08a6c (diff) | |
| download | tcl-3b997203019d6f1c70eda1dd8609dafbfd9ca399.zip tcl-3b997203019d6f1c70eda1dd8609dafbfd9ca399.tar.gz tcl-3b997203019d6f1c70eda1dd8609dafbfd9ca399.tar.bz2 | |
Prevent Tcl 8.6 header-file to be usable for Tcl 9 compiles. (see [6f22c7a1fc])
| -rw-r--r-- | generic/tcl.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
