libc: Define _assert/__assert to avoid 3rd libary redefine them
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user