summaryrefslogtreecommitdiffstats
path: root/generic/tkTextUndo.c
diff options
context:
space:
mode:
authorgcramer <remarcg@gmx.net>2017-06-08 17:28:05 (GMT)
committergcramer <remarcg@gmx.net>2017-06-08 17:28:05 (GMT)
commitf6ac0c3771800705d0838a1c7f615dbbe0fdd6b9 (patch)
tree82732b34eb2e4889bd5aee0e3285717eebb74f78 /generic/tkTextUndo.c
parentf98a66fcd1c1004b4b182bc0bfaeda877411f62a (diff)
downloadtk-f6ac0c3771800705d0838a1c7f615dbbe0fdd6b9.zip
tk-f6ac0c3771800705d0838a1c7f615dbbe0fdd6b9.tar.gz
tk-f6ac0c3771800705d0838a1c7f615dbbe0fdd6b9.tar.bz2
Work-around for Mac: "bool" is replaced with "tkbool_t", and the (quasi) keyword "bool" now will only be used internally.
Diffstat (limited to 'generic/tkTextUndo.c')
-rw-r--r--generic/tkTextUndo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tkTextUndo.c b/generic/tkTextUndo.c
index 499bd6e..39183e3 100644
--- a/generic/tkTextUndo.c
+++ b/generic/tkTextUndo.c
@@ -18,6 +18,11 @@
# include "tkTextUndoPriv.h"
#endif
+/* this ugly work-around is needed for Mac */
+#ifndef bool
+# define bool tkbool_t
+#endif
+
#ifndef MAX
# define MAX(a,b) ((a) < (b) ? b : a)
#endif