diff options
-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_ */ |