diff options
| author | Meco Man <[email protected]> | 2021-06-13 17:16:03 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-06-13 17:27:16 +0800 |
| commit | 5bb6e86cf5573eac5395b2c31f7fb0650382605e (patch) | |
| tree | 09c40d7f61920c02d6434cb33bca118ecd220c2e /components/libc/compilers | |
| parent | 4fd407461793613fd2f0fc74f85b194b68df9447 (diff) | |
[sys/errno.h] 修复armclang支持问题
Diffstat (limited to 'components/libc/compilers')
| -rw-r--r-- | components/libc/compilers/common/none-gcc/sys/errno.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/common/none-gcc/sys/errno.h b/components/libc/compilers/common/none-gcc/sys/errno.h index 773c2cd7d3..ad3614024d 100644 --- a/components/libc/compilers/common/none-gcc/sys/errno.h +++ b/components/libc/compilers/common/none-gcc/sys/errno.h @@ -10,7 +10,7 @@ #ifndef _SYS_ERRNO_H #define _SYS_ERRNO_H -#if defined(__CC_ARM) +#if defined(__ARMCC_VERSION) /* defined in armcc/errno.h @@ -37,7 +37,7 @@ defined in armcc/errno.h #define ERROR_BASE_NO 0 #endif -#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__) +#if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__) #include <errno.h> #define EPERM (ERROR_BASE_NO + 1) #define ENOENT (ERROR_BASE_NO + 2) |
