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))