From c6d3530d859420436a255684052588b87de8f015 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Mon, 26 Dec 2011 18:57:59 +0000 Subject: [PATCH] As per C11, add static_assert() to . --- include/assert.h | 6 ++++++ 1 file changed, 6 insertions(+) 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_ */