diff options
| author | sakumisu <[email protected]> | 2025-07-31 18:15:25 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-07-31 18:15:42 +0800 |
| commit | 4ab097d9dcdca3d0a153cb2239ce28cafccaa16b (patch) | |
| tree | 686ef6be14fdb62fbfbc32e51f7b233764b9da5d | |
| parent | f994422c418d78d6a06eef90f69a5d00135c350c (diff) | |
fix(common/usb_util): fix missing __ICCARM_V8 define
Signed-off-by: sakumisu <[email protected]>
| -rw-r--r-- | common/usb_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
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)) |
