From: Victor Seva <>
Date: Tue, 16 Sep 2025 12:42:04 +0200
Subject: fix gcc15 build

---
 src/C_XS/ToolBox.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/C_XS/ToolBox.h b/src/C_XS/ToolBox.h
index c2efcbe..314428a 100644
--- a/src/C_XS/ToolBox.h
+++ b/src/C_XS/ToolBox.h
@@ -94,9 +94,13 @@ typedef  Z_longword         *Z_longwordptr;
         #define boolean bool
     #else
         typedef int boolean;
-        #ifndef I_STDBOOL
-         enum { false, true };
-        #endif 
+        #if __STDC_VERSION__ >= 202311L
+        /* bool is part of the C23 standard */
+        #else
+            #ifndef I_STDBOOL
+                enum { false, true };
+            #endif
+        #endif
     #endif
 #endif
 
