diff options
| author | guo <[email protected]> | 2021-10-28 10:30:20 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-28 10:30:20 +0800 |
| commit | e0f45a6ca415804dcdb9d1e968f617878f58f809 (patch) | |
| tree | f6a3fd9828abf9524c6629b52b029842e138ae8f /components/libc/compilers/dlib/syscall_close.c | |
| parent | ddaa8f3f32232f4460e09f5dab9f2f5c257fec92 (diff) | |
| parent | 4b9fb8f39caae9057a494611e8dae70d2809512d (diff) | |
Merge pull request #5239 from mysterywolf/POSIX
[libc] 消除代码中将RT_LIBC_USING_FILEIO的预编译判断条件
Diffstat (limited to 'components/libc/compilers/dlib/syscall_close.c')
| -rw-r--r-- | components/libc/compilers/dlib/syscall_close.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/dlib/syscall_close.c b/components/libc/compilers/dlib/syscall_close.c index bafe21aa4b..2897c2418a 100644 --- a/components/libc/compilers/dlib/syscall_close.c +++ b/components/libc/compilers/dlib/syscall_close.c @@ -18,9 +18,9 @@ int __close(int handle) handle == _LLIO_STDERR || handle == _LLIO_STDIN) return _LLIO_ERROR; -#ifdef RT_LIBC_USING_FILEIO +#ifdef RT_USING_POSIX return close(handle); #else return _LLIO_ERROR; -#endif /* RT_LIBC_USING_FILEIO */ +#endif /* RT_USING_POSIX */ } |
