mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-20 05:25:04 +08:00
[libc] 消除代码中依赖于RT_LIBC_USING_FILEIO的判断
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user