diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-05-05 13:32:33 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-05-05 13:32:33 (GMT) |
commit | d43b63f7c3ecded6e6135bb7025d151343a0dcce (patch) | |
tree | 8f4f4b294d699179b3813fc2e7b55c0d125eeabc /generic/tkInt.h | |
parent | e5491193b5d773f05acdd08d31cadc621f85a92d (diff) | |
download | tk-d43b63f7c3ecded6e6135bb7025d151343a0dcce.zip tk-d43b63f7c3ecded6e6135bb7025d151343a0dcce.tar.gz tk-d43b63f7c3ecded6e6135bb7025d151343a0dcce.tar.bz2 |
Proposed fix for [eedd795d98]: sizeof(enum) != sizeof(int)
Diffstat (limited to 'generic/tkInt.h')
-rw-r--r-- | generic/tkInt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h index b19e3bd..d3bf908 100644 --- a/generic/tkInt.h +++ b/generic/tkInt.h @@ -19,6 +19,8 @@ #include "tkPort.h" #endif +#define TK_OPTION_ENUM_VAR ((int)(sizeof(Tk_OptionType)&(sizeof(int)-1))<<6) + /* * Ensure WORDS_BIGENDIAN is defined correctly: * Needs to happen here in addition to configure to work with fat compiles on |