From 4ab097d9dcdca3d0a153cb2239ce28cafccaa16b Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Thu, 31 Jul 2025 18:15:25 +0800 Subject: [PATCH] fix(common/usb_util): fix missing __ICCARM_V8 define Signed-off-by: sakumisu <1203593632@qq.com> --- common/usb_util.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/usb_util.h b/common/usb_util.h index 5fa8403b..96a14d37 100644 --- a/common/usb_util.h +++ b/common/usb_util.h @@ -45,6 +45,12 @@ #define __ALIGNED(x) __attribute__((aligned(x))) #endif #elif defined(__ICCARM__) || defined(__ICCRX__) || defined(__ICCRISCV__) +#if (__VER__ >= 8000000) + #define __ICCARM_V8 1 +#else + #define __ICCARM_V8 0 +#endif + #ifndef __USED #if defined(__ICCARM_V8) || defined(__ICCRISCV__) #define __USED __attribute__((used))