Revisión | 03fbd941e943976bb92cb392882c2ff7ec218704 (tree) |
---|---|
Tiempo | 2022-06-29 20:20:13 |
Autor | Nicolas Cavallari <nicolas.cavallari@gree...> |
Commiter | Waldemar Brodkorb |
assert: Add static_assert macro
See the C11 standard 7.2 §3
The definition is copied from glibc.
Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
@@ -76,3 +76,8 @@ __END_DECLS | ||
76 | 76 | # endif |
77 | 77 | |
78 | 78 | #endif /* NDEBUG. */ |
79 | + | |
80 | +#if defined __USE_ISOC11 && !defined __cplusplus | |
81 | +# undef static_assert | |
82 | +# define static_assert _Static_assert | |
83 | +#endif |