SDL: define SDL_DEFINE_STDBOOL for gcc < 3

From ff90570a3cf0c7178708227142f583d72639bbd7 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 18 Sep 2024 21:40:50 +0300
Subject: [PATCH] define SDL_DEFINE_STDBOOL for gcc < 3

---
 include/SDL3/SDL_stdinc.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h
index d958eb293b834..0daf8cd5c7672 100644
--- a/include/SDL3/SDL_stdinc.h
+++ b/include/SDL3/SDL_stdinc.h
@@ -38,6 +38,10 @@
 #if defined(_MSC_VER) && (_MSC_VER < 1910)
 #define SDL_DEFINE_STDBOOL
 #endif
+/* gcc-2.95 had non-standard stdbool.h */
+#if defined(__GNUC__) && (__GNUC__ < 3)
+#define SDL_DEFINE_STDBOOL
+#endif
 
 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 #include <inttypes.h>