diff options
author | Ed Schouten <ed@FreeBSD.org> | 2011-12-26 18:57:59 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2011-12-26 18:57:59 +0000 |
commit | c6d3530d859420436a255684052588b87de8f015 (patch) | |
tree | 60942e4dbc392edcdcfce3a9e0e5892f28c53657 /include/assert.h | |
parent | b1214a51cce95eaf8eeaa78463cd46cf95536903 (diff) | |
download | src-c6d3530d859420436a255684052588b87de8f015.tar.gz src-c6d3530d859420436a255684052588b87de8f015.zip |
Notes
Diffstat (limited to 'include/assert.h')
-rw-r--r-- | include/assert.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/assert.h b/include/assert.h index 5621f8cac7e2..6633d8f96ff7 100644 --- a/include/assert.h +++ b/include/assert.h @@ -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_ */ |