summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMurphyZhao <[email protected]>2019-04-11 14:24:43 +0800
committerMurphyZhao <[email protected]>2019-04-11 14:27:16 +0800
commit5885fc414f02fce4be55d26830aa95e7a460048c (patch)
tree47302404d82a8dfca2a7c7383e8bf0de8f7c517c /include
parent9596a94a8b05e16ead0d977a3f6ba0a812efb797 (diff)
[include/libc] 在使用 ARMCC 和 IAR 时,移除对 errno.h 的引入。如果引入了 errno.h,errno 就不会被重定向到 _rt_errno。
Signed-off-by: MurphyZhao <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/libc/libc_errno.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libc/libc_errno.h b/include/libc/libc_errno.h
index bb9a4dea2a..0f3bc7635a 100644
--- a/include/libc/libc_errno.h
+++ b/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