diff options
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/assert.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/assert.h b/builtin/assert.h index 1a4c64eb68..6ee2ac1b20 100644 --- a/builtin/assert.h +++ b/builtin/assert.h @@ -41,6 +41,9 @@ extern void panic_assert_fail(const char *msg, const char *func, #define ASSERT(cond) #endif +/* This collides with cstdlib, so exclude it where cstdlib is supported. */ +#ifndef assert #define assert(x...) ASSERT(x) +#endif #endif /* __CROS_EC_ASSERT_H__ */ |