From 779c9d9d0fc2c20ec6a4e622a2ce5d6c0810c3e0 Mon Sep 17 00:00:00 2001 From: A404M Date: Thu, 29 Aug 2024 03:35:10 +0330 Subject: moved stuff to c23 --- src/ui/tui.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/tui.h') 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, -- cgit v1.2.3