diff options
Diffstat (limited to 'src/ui/tui.h')
-rw-r--r-- | src/ui/tui.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/tui.h b/src/ui/tui.h index d351d5c..bda1d65 100644 --- a/src/ui/tui.h +++ b/src/ui/tui.h @@ -28,9 +28,12 @@ typedef struct MOUSE_ACTION { typedef void (*ON_CLICK_CALLBACK)(const MOUSE_ACTION *mouse_action); + #ifndef __cplusplus +#if (__STDC_VERSION__ < 202000L) typedef enum bool : uint8_t { false = 0, true = 1 } bool; #endif +#endif typedef enum COLOR { COLOR_NO_COLOR = -1, |