+#if defined(__STDC_VERSION__)
+ #if (__STDC_VERSION__ == 199409L) // IAR
+ #define COMPILER_C99 1 // not true, because partial C99, avoid miscompilation
+ #elif (__STDC_VERSION__ >= 199901L) // GCC
+ #define COMPILER_C99 1
+ #else
+ #define COMPILER_C99 0
+ #endif