Browse Source

define SDL_DEFINE_STDBOOL for gcc < 3

Ozkan Sezer 7 months ago
parent
commit
ff90570a3c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      include/SDL3/SDL_stdinc.h

+ 4 - 0
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>