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 | |
parent | 5eceb3958ee6cb42d57d4fe52dd76fb03b178edf (diff) | |
download | cygnal-25742157d741f37a78f1058dcef6791a27df5235.tar.gz cygnal-25742157d741f37a78f1058dcef6791a27df5235.tar.bz2 cygnal-25742157d741f37a78f1058dcef6791a27df5235.zip |
* libc/include/assert.h (static_assert): Define.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 4 | ||||
-rw-r--r-- | newlib/libc/include/assert.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b89eb214a..e951bf038 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2012-10-16 Aurelien Jacobs <aurel@gnuage.org> + + * libc/include/assert.h (static_assert): Define. + 2012-10-15 Corinna Vinschen <vinschen@redhat.com> * libc/include/sys/features.h (__GNUC_PREREQ): Define. Use 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 |