As per C11, add static_assert() to <assert.h>.

This commit is contained in:
Ed Schouten 2011-12-26 18:57:59 +00:00
parent b1214a51cc
commit c6d3530d85
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228902

View File

@ -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_ */