summaryrefslogtreecommitdiffstats
path: root/generic/tkInt.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-05-05 13:32:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-05-05 13:32:33 (GMT)
commitd43b63f7c3ecded6e6135bb7025d151343a0dcce (patch)
tree8f4f4b294d699179b3813fc2e7b55c0d125eeabc /generic/tkInt.h
parente5491193b5d773f05acdd08d31cadc621f85a92d (diff)
downloadtk-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.h2
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