mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
[libc][iar][gcc] 优化remove函数
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
#pragma module_name = "?remove"
|
||||
int remove(const char *val)
|
||||
{
|
||||
#ifdef RT_USING_DFS
|
||||
dfs_file_unlink(val);
|
||||
#ifndef RT_USING_DFS
|
||||
return -1;
|
||||
#else
|
||||
return unlink(filename);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user