Explorar o código

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

Signed-off-by: MurphyZhao <d2014zjt@163.com>
MurphyZhao %!s(int64=6) %!d(string=hai) anos
pai
achega
5885fc414f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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