summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/nogcc
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-01-03 09:38:04 -0500
committerMeco Man <[email protected]>2022-01-03 13:33:03 -0500
commitee93914d78987bbca537db3e7cb3f8a9fbaefe6c (patch)
tree00cf26d1e6351d4c964499b4de4554e2103954bc /components/libc/compilers/common/nogcc
parent09c089d51194ccaed497fc43d8f4db007ea34d80 (diff)
[libc] 处理在win32平台下的编译问题
Diffstat (limited to 'components/libc/compilers/common/nogcc')
-rw-r--r--components/libc/compilers/common/nogcc/sys/errno.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/libc/compilers/common/nogcc/sys/errno.h b/components/libc/compilers/common/nogcc/sys/errno.h
index 0452fe93a1..1c6cd6d18d 100644
--- a/components/libc/compilers/common/nogcc/sys/errno.h
+++ b/components/libc/compilers/common/nogcc/sys/errno.h
@@ -575,6 +575,10 @@ defined in armcc/errno.h
#ifndef EHWPOISON
#define EHWPOISON (ERROR_BASE_NO + 133)
#endif
-#endif
-#endif
+#elif defined(_WIN32)
+#include <errno.h>
+
+#endif /* defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__) */
+
+#endif /* __SYS_ERRNO_H__ */