summaryrefslogtreecommitdiffstats
path: root/generic/tkInt.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkInt.h')
-rw-r--r--generic/tkInt.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h
index 50ddff6..4b879af 100644
--- a/generic/tkInt.h
+++ b/generic/tkInt.h
@@ -33,6 +33,9 @@
#endif
#include <stdint.h>
#include <stdlib.h>
+#if defined(_MSC_VER) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ < 202311L))
+#include <stdbool.h>
+#endif
#ifdef BYTE_ORDER
# ifdef BIG_ENDIAN
# if BYTE_ORDER == BIG_ENDIAN
@@ -1112,7 +1115,7 @@ void Tcl_Panic(const char *, ...) __attribute__((analyzer_noreturn));
* Exported internals.
*/
-#include "tkIntDecls.h"
+#include "tkIntDecls.h" /* IWYU pragma: export */
#ifdef __cplusplus
extern "C" {
@@ -1236,7 +1239,7 @@ MODULE_SCOPE Tcl_Command TkMakeEnsemble(Tcl_Interp *interp,
const char *nsname, const char *name,
void *clientData, const TkEnsemble *map);
MODULE_SCOPE double TkScalingLevel(Tk_Window tkwin);
-MODULE_SCOPE int TkObjIsEmpty(Tcl_Obj *objPtr);
+MODULE_SCOPE bool TkObjIsEmpty(Tcl_Obj *objPtr);
MODULE_SCOPE int TkInitTkCmd(Tcl_Interp *interp,
void *clientData);
MODULE_SCOPE int TkInitFontchooser(Tcl_Interp *interp,