summaryrefslogtreecommitdiff
path: root/components/libc/compilers/dlib/syscall_read.c
diff options
context:
space:
mode:
authorguo <[email protected]>2021-10-28 10:30:20 +0800
committerGitHub <[email protected]>2021-10-28 10:30:20 +0800
commite0f45a6ca415804dcdb9d1e968f617878f58f809 (patch)
treef6a3fd9828abf9524c6629b52b029842e138ae8f /components/libc/compilers/dlib/syscall_read.c
parentddaa8f3f32232f4460e09f5dab9f2f5c257fec92 (diff)
parent4b9fb8f39caae9057a494611e8dae70d2809512d (diff)
Merge pull request #5239 from mysterywolf/POSIX
[libc] 消除代码中将RT_LIBC_USING_FILEIO的预编译判断条件
Diffstat (limited to 'components/libc/compilers/dlib/syscall_read.c')
-rw-r--r--components/libc/compilers/dlib/syscall_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/dlib/syscall_read.c b/components/libc/compilers/dlib/syscall_read.c
index f65b502966..447ca03112 100644
--- a/components/libc/compilers/dlib/syscall_read.c
+++ b/components/libc/compilers/dlib/syscall_read.c
@@ -20,7 +20,7 @@
#pragma module_name = "?__read"
size_t __read(int handle, unsigned char *buf, size_t len)
{
-#ifdef RT_LIBC_USING_FILEIO
+#ifdef RT_USING_POSIX
int size;
if (handle == _LLIO_STDIN)
@@ -41,5 +41,5 @@ size_t __read(int handle, unsigned char *buf, size_t len)
return size;
#else
return _LLIO_ERROR;
-#endif /* RT_LIBC_USING_FILEIO */
+#endif /* RT_USING_POSIX */
}