diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-10-16 19:00:30 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-10-16 19:00:30 +0000 |
commit | 25742157d741f37a78f1058dcef6791a27df5235 (patch) | |
tree | 59be1e08d921ffddc16443b0280fe8aa36000060 /newlib/libc | |
parent | 5eceb3958ee6cb42d57d4fe52dd76fb03b178edf (diff) | |
download | newlib-25742157d741f37a78f1058dcef6791a27df5235.zip newlib-25742157d741f37a78f1058dcef6791a27df5235.tar.gz newlib-25742157d741f37a78f1058dcef6791a27df5235.tar.bz2 |
* libc/include/assert.h (static_assert): Define.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/assert.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/assert.h b/newlib/libc/include/assert.h index e542b21..91bb040 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 |