define SDL_DEFINE_STDBOOL for gcc < 3

This commit is contained in:
Ozkan Sezer authored and Sam Lantinga committed 2024-09-18 12:17:22 -07:00
1 parent 95c3ee77c1
commit ff90570a3c
1 file changed
+4
+4
View File
@@ -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>