소스 검색

define SDL_DEFINE_STDBOOL for gcc < 3

Ozkan Sezer 1 년 전
부모
커밋
ff90570a3c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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>