define SDL_DEFINE_STDBOOL for gcc < 3

This commit is contained in:
Ozkan Sezer 2024-09-18 21:40:50 +03:00 committed by Sam Lantinga
parent 95c3ee77c1
commit ff90570a3c
1 changed files with 4 additions and 0 deletions

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>