summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-23 20:46:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-23 20:46:05 (GMT)
commitd1e742a7b7a9b4754993a7f19e61ecc674d14fa2 (patch)
treec205de0378f4c8e5720896d59f1b9ba78700d871
parent404abb8481a0329a60fd3194762eab22b688cf6c (diff)
downloadtk-d1e742a7b7a9b4754993a7f19e61ecc674d14fa2.zip
tk-d1e742a7b7a9b4754993a7f19e61ecc674d14fa2.tar.gz
tk-d1e742a7b7a9b4754993a7f19e61ecc674d14fa2.tar.bz2
Keep Tk 8.7 as much as possible binary compatible with Tk 9.0
-rw-r--r--generic/tk.h14
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