Enable _C_BOOL on non GNU C compilers

This commit is contained in:
Frederik Seiffert 2021-08-07 16:37:52 +02:00 committed by Frederik Seiffert
parent 852ec7be7d
commit 40f88bc622
14 changed files with 30 additions and 30 deletions

View file

@ -61,7 +61,7 @@ typeSize(const char* type)
case _C_ULNG_LNG: return sizeof(unsigned long long);
case _C_FLT: return sizeof(float);
case _C_DBL: return sizeof(double);
#if __GNUC__ > 2 && defined(_C_BOOL)
#if defined(_C_BOOL) && (!defined(__GNUC__) || __GNUC__ > 2)
case _C_BOOL: return sizeof(_Bool);
#endif
case _C_PTR: return sizeof(void*);