mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 18:56:10 +08:00
libc: Define _assert/__assert to avoid 3rd libary redefine them
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
d8a8c2fdd8
commit
65a04c66a2
@@ -78,6 +78,11 @@
|
||||
# define assert(f) ASSERT(f)
|
||||
#endif
|
||||
|
||||
/* Suppress 3rd party library redefine _assert/__assert */
|
||||
|
||||
#define _assert _assert
|
||||
#define __assert __assert
|
||||
|
||||
/* Definition required for C11 compile-time assertion checking. The
|
||||
* static_assert macro simply expands to the _Static_assert keyword.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user