diff options
| author | Meco Man <[email protected]> | 2021-10-27 14:42:25 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-10-27 21:50:17 -0400 |
| commit | 4b9fb8f39caae9057a494611e8dae70d2809512d (patch) | |
| tree | 197cd39892e6428276f6b2fa5c2fab57fc33bb75 /components/libc/compilers/dlib/syscall_open.c | |
| parent | bb859e79e0836f27030adcf8a8e9afb26ae4dab4 (diff) | |
[libc] 消除代码中依赖于RT_LIBC_USING_FILEIO的判断
Diffstat (limited to 'components/libc/compilers/dlib/syscall_open.c')
| -rw-r--r-- | components/libc/compilers/dlib/syscall_open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/dlib/syscall_open.c b/components/libc/compilers/dlib/syscall_open.c index 891b9afe58..8fb3c3a11f 100644 --- a/components/libc/compilers/dlib/syscall_open.c +++ b/components/libc/compilers/dlib/syscall_open.c @@ -16,7 +16,7 @@ int __open(const char *filename, int mode) { -#ifdef RT_LIBC_USING_FILEIO +#ifdef RT_USING_POSIX int handle; int open_mode = O_RDONLY; @@ -68,5 +68,5 @@ int __open(const char *filename, int mode) return handle; #else return _LLIO_ERROR; -#endif /* RT_LIBC_USING_FILEIO */ +#endif /* RT_USING_POSIX */ } |
