Browse Source

[include/libc] 在使用 ARMCC 和 IAR 时,移除对 errno.h 的引入。如果引入了 errno.h,errno 就不会被重定向到 _rt_errno。

Signed-off-by: MurphyZhao <d2014zjt@163.com>
MurphyZhao 6 years ago
parent
commit
5885fc414f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/libc/libc_errno.h

+ 1 - 1
include/libc/libc_errno.h

@@ -13,7 +13,7 @@
 
 #include <rtconfig.h>
 
-#if defined(RT_USING_NEWLIB) || defined(_WIN32) || defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__)
+#if defined(RT_USING_NEWLIB) || defined(_WIN32)
 /* use errno.h file in toolchains */
 #include <errno.h>
 #endif