[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:
Jiang Yu authored and Rbb666 committed 2026-10-14 09:16:11 +08:00
1 parent f9436bb5bd
commit 9e0e6dbba7
1 file changed
+3
+3
View File
@@ -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>