Browse Source

[sys/errno.h] 修复armclang支持问题

Meco Man 4 năm trước cách đây
mục cha
commit
5bb6e86cf5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      components/libc/compilers/common/none-gcc/sys/errno.h

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