summaryrefslogtreecommitdiff
path: root/components/libc/compilers
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-05-22 03:20:01 +0800
committerMeco Man <[email protected]>2021-05-22 03:20:01 +0800
commitb10bef6f241bfd9a6ecba3412351b20f3aa2eb13 (patch)
treeb23b9cbb96fb540da8f5a8303f293083cf18531d /components/libc/compilers
parent0e0e2a0f951ca3c8b5ff84137be369db6dab2922 (diff)
[sys/errno.h] 修复lwip报错
Diffstat (limited to 'components/libc/compilers')
-rw-r--r--components/libc/compilers/common/none-gcc/sys/errno.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/libc/compilers/common/none-gcc/sys/errno.h b/components/libc/compilers/common/none-gcc/sys/errno.h
index bdc3a3c9da..773c2cd7d3 100644
--- a/components/libc/compilers/common/none-gcc/sys/errno.h
+++ b/components/libc/compilers/common/none-gcc/sys/errno.h
@@ -37,10 +37,8 @@ defined in armcc/errno.h
#define ERROR_BASE_NO 0
#endif
-#if !defined(_WIN32)
-
+#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__)
#include <errno.h>
-
#define EPERM (ERROR_BASE_NO + 1)
#define ENOENT (ERROR_BASE_NO + 2)
#define ESRCH (ERROR_BASE_NO + 3)