From 25742157d741f37a78f1058dcef6791a27df5235 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 16 Oct 2012 19:00:30 +0000 Subject: * libc/include/assert.h (static_assert): Define. --- newlib/libc/include/assert.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'newlib/libc/include/assert.h') diff --git a/newlib/libc/include/assert.h b/newlib/libc/include/assert.h index e542b214f..91bb040ca 100644 --- a/newlib/libc/include/assert.h +++ b/newlib/libc/include/assert.h @@ -41,6 +41,10 @@ void _EXFUN(__assert, (const char *, int, const char *) void _EXFUN(__assert_func, (const char *, int, const char *, const char *) _ATTRIBUTE ((__noreturn__))); +#if __STDC_VERSION__ >= 201112L && !defined __cplusplus +# define static_assert _Static_assert +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.3