diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-23 20:46:05 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-23 20:46:05 (GMT) |
commit | d1e742a7b7a9b4754993a7f19e61ecc674d14fa2 (patch) | |
tree | c205de0378f4c8e5720896d59f1b9ba78700d871 /generic | |
parent | 404abb8481a0329a60fd3194762eab22b688cf6c (diff) | |
download | tk-d1e742a7b7a9b4754993a7f19e61ecc674d14fa2.zip tk-d1e742a7b7a9b4754993a7f19e61ecc674d14fa2.tar.gz tk-d1e742a7b7a9b4754993a7f19e61ecc674d14fa2.tar.bz2 |
Keep Tk 8.7 as much as possible binary compatible with Tk 9.0
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tk.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/generic/tk.h b/generic/tk.h index b8023be..d384309 100644 --- a/generic/tk.h +++ b/generic/tk.h @@ -301,16 +301,20 @@ typedef struct Tk_SavedOption { Tcl_Obj *valuePtr; /* The old value of the option, in the form of * a Tcl object; may be NULL if the value was * not saved as an object. */ +#if TCL_MAJOR_VERSION < 9 double internalForm; /* The old value of the option, in some * internal representation such as an int or * (XColor *). Valid only if the field * optionPtr->specPtr->objOffset is -1. The * space must be large enough to accommodate a - * double, a long, or a pointer; right now it - * looks like a double (i.e., 8 bytes) is big - * enough. Also, using a double guarantees - * that the field is properly aligned for - * storing large values. */ + * long double, a double, a long, or a pointer; + * right now it looks like a long double (i.e., 16 + * bytes) is big enough. Also, using a long double + * guarantees that the field is properly aligned + * for storing large values. */ +#else + long double internalForm; +#endif } Tk_SavedOption; #ifdef TCL_MEM_DEBUG |