mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
As per C11, add static_assert() to <assert.h>.
This commit is contained in:
parent
b1214a51cc
commit
c6d3530d85
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228902
|
@ -57,7 +57,13 @@
|
|||
|
||||
#ifndef _ASSERT_H_
|
||||
#define _ASSERT_H_
|
||||
|
||||
#if __ISO_C_VISIBLE >= 2011 && (!defined(__cplusplus) || __cplusplus < 201103L)
|
||||
#define static_assert _Static_assert
|
||||
#endif
|
||||
|
||||
__BEGIN_DECLS
|
||||
void __assert(const char *, const char *, int, const char *) __dead2;
|
||||
__END_DECLS
|
||||
|
||||
#endif /* !_ASSERT_H_ */
|
||||
|
|
Loading…
Reference in a new issue