Add a conditional check for the macro __STDC_VERSION__ (#4080)
This commit is contained in:
@ -46,7 +46,7 @@ extern "C" {
|
||||
// Auxiliaries
|
||||
|
||||
// Machine types
|
||||
#if (__STDC_VERSION__) > 199901L
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__) > 199901L
|
||||
inline void assertions(void) {
|
||||
static_assert(sizeof(float) == sizeof(uint32_t), "incompatible float type");
|
||||
static_assert(sizeof(double) == sizeof(uint64_t), "incompatible double type");
|
||||
|
||||
Reference in New Issue
Block a user