* libc/include/assert.h (static_assert): Define.

This commit is contained in:
Corinna Vinschen 2012-10-16 19:00:30 +00:00
parent 5eceb3958e
commit 25742157d7
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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