Use _Static_assert on clang.

This commit is contained in:
Y_Less 2021-04-26 13:13:32 +01:00
parent 069bc30c24
commit 3b5263a5bc

View File

@ -114,7 +114,7 @@
#endif
#if !defined assert_static
#if (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112) || GCC_VERSION >= 40600
#if (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112) || GCC_VERSION >= 40600 || __clang__
#define assert_static(test) _Static_assert(test, "assert")
#else
/* see "Compile-Time Assertions" by Greg Miller,