From 668d6686eab3997c576218d0f7bc5bc97376d35c Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Fri, 23 Jan 2026 11:59:30 +0100 Subject: [PATCH] fix c23 don't use bolean' keywords with C23 Signed-off-by: Nicolas PARLANT --- include/dlib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/dlib.h b/include/dlib.h index 7db27be..508f62d 100644 --- a/include/dlib.h +++ b/include/dlib.h @@ -1,7 +1,9 @@ #ifndef __DLIB_H #define __DLIB_H 1 -typedef enum { false, true } bool; +#if __STDC_VERSION__ < 202311L + typedef enum { false, true } bool; +#endif enum { ERROR, SUCCESS, DLIB_MAXBUF = 1024 }; #define DLIB_VERSION "0.1b"