* libc/include/assert.h (static_assert): Define.
This commit is contained in:
parent
5eceb3958e
commit
25742157d7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue