Simple Directmedia Layer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

stdinc: use __has_include to detect <stdbool.h>

Newer emscripten SDK does an unconditional #include <stdbool.h>,
which clashes with our custom bool.h typedef

authored by

Anonymous Maarten and committed by
Anonymous Maarten
d5f08b8f 543f2449

+5
+5
include/SDL3/SDL_stdinc.h
··· 45 45 #endif 46 46 47 47 #ifndef __cplusplus 48 + #if defined(__has_include) && !defined(SDL_INCLUDE_STDBOOL_H) 49 + #if __has_include(<stdbool.h>) 50 + #define SDL_INCLUDE_STDBOOL_H 51 + #endif 52 + #endif 48 53 #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ 49 54 (defined(_MSC_VER) && (_MSC_VER >= 1910 /* Visual Studio 2017 */)) || \ 50 55 defined(SDL_INCLUDE_STDBOOL_H)