mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-16 01:05:15 +08:00
[components/drivers] reset: Fix build error when reset and ulog are both enabled.
The '#define assert ASSERT' in ulog_def.h conflicts with the 'assert' used in reset.c (rstc->rstcer->ops->assert), causing unintended macro expansion. Signed-off-by: Jiang Yu <yu.jiang@rock-chips.com>
This commit is contained in:
1 parent
f9436bb5bd
commit
9e0e6dbba7
1 file changed
+3
@@ -14,6 +14,9 @@
|
||||
#define DBG_TAG "rtdm.reset"
|
||||
#define DBG_LVL DBG_INFO
|
||||
#include <rtdbg.h>
|
||||
#ifdef assert
|
||||
#undef assert
|
||||
#endif
|
||||
|
||||
#include <drivers/ofw.h>
|
||||
#include <drivers/misc.h>
|
||||
|
||||
Reference in new issue
Block a user