summaryrefslogtreecommitdiff
path: root/include/libc/libc_errno.h
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-09-11 13:20:50 +0800
committerGitHub <[email protected]>2020-09-11 13:20:50 +0800
commitac751db6703f8117c8f3db5b612536cddf59bdcc (patch)
tree5d14525930868492bd142e9026a5e3c50fc42738 /include/libc/libc_errno.h
parent36cb4349a61d768c5e2fad0798647dfb3e0b523e (diff)
parentb3ab8a99e10f68042a3f2cba11e130004aa124e4 (diff)
Merge pull request #3888 from mysterywolf/master
[add] [libc] libc新增getline/getdelim函数(posix.1-2008)
Diffstat (limited to 'include/libc/libc_errno.h')
-rw-r--r--include/libc/libc_errno.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libc/libc_errno.h b/include/libc/libc_errno.h
index 0f3bc7635a..00c1f733d3 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)
+#if defined(RT_USING_NEWLIB) || defined(_WIN32) || defined( __GNUC__ )
/* use errno.h file in toolchains */
#include <errno.h>
#endif
@@ -45,7 +45,7 @@ defined in armcc/errno.h
#define ERROR_BASE_NO 0
#endif
-#if !defined(RT_USING_NEWLIB) && !defined(_WIN32)
+#if !defined(RT_USING_NEWLIB) && !defined(_WIN32) && !defined(__GNUC__ )
#define EPERM (ERROR_BASE_NO + 1)
#define ENOENT (ERROR_BASE_NO + 2)