From: Victor Seva <vseva@debian.org>
Date: Fri, 12 Sep 2025 09:59:20 +0200
Subject: fix gcc15 build

---
 ToolBox.h | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/ToolBox.h b/ToolBox.h
index ec514cd..cddceb8 100644
--- a/ToolBox.h
+++ b/ToolBox.h
@@ -93,10 +93,14 @@ typedef  Z_longword         *Z_longwordptr;
     #elif PERL_DARWIN
         #define boolean bool
     #else
-	typedef int boolean;
-	#ifndef I_STDBOOL
-	    enum { false, true };
-	#endif
+        typedef int boolean;
+        #if __STDC_VERSION__ >= 202311L
+        /* bool is part of the C23 standard */
+        #else
+            #ifndef I_STDBOOL
+                enum { false, true };
+            #endif
+        #endif
     #endif
 #endif
 
