Revert "[libc]&[dfs] remove unnecessary RT_USING_POSIX and RT_USING_DFS_DEVFS"

This commit is contained in:
Jianting (Meco) Man
2021-10-14 20:11:01 -04:00
committed by GitHub
parent 92ea0ec8c7
commit 8c01acc667
6 changed files with 27 additions and 27 deletions
+2 -2
View File
@@ -18,7 +18,7 @@
#include <lwp.h>
#endif
#if defined(RT_USING_DFS_DEVFS) && defined(RT_USING_LIBC)
#if defined(RT_USING_DFS_DEVFS) && defined(RT_USING_POSIX)
#include <libc.h>
#endif
@@ -216,7 +216,7 @@ struct dfs_fd *fd_get(int fd)
struct dfs_fd *d;
struct dfs_fdtable *fdt;
#if defined(RT_USING_DFS_DEVFS) && defined(RT_USING_LIBC)
#if defined(RT_USING_DFS_DEVFS) && defined(RT_USING_POSIX)
if ((0 <= fd) && (fd <= 2))
fd = libc_stdio_get_console();
#endif