Merge pull request #5169 from mysterywolf/libc

[libc]&[dfs] remove unnecessary RT_USING_POSIX and RT_USING_DFS_DEVFS
This commit is contained in:
guo
2021-10-14 12:00:15 +08:00
committed by GitHub
6 changed files with 27 additions and 27 deletions

View File

@@ -23,7 +23,7 @@ int _EXFUN(putenv,(char *__string));
int libc_system_init(void)
{
#if defined(RT_USING_DFS) & defined(RT_USING_DFS_DEVFS) & defined(RT_USING_CONSOLE)
#if defined(RT_USING_DFS_DEVFS) & defined(RT_USING_CONSOLE)
rt_device_t dev_console;
dev_console = rt_console_get_device();
@@ -39,11 +39,11 @@ int libc_system_init(void)
/* set PATH and HOME */
putenv("PATH=/bin");
putenv("HOME=/home");
#endif
#endif /* defined(RT_USING_DFS_DEVFS) & defined(RT_USING_CONSOLE) */
#if defined RT_USING_PTHREADS && !defined RT_USING_COMPONENTS_INIT
#if defined(RT_USING_PTHREADS) && !defined(RT_USING_COMPONENTS_INIT)
pthread_system_init();
#endif
#endif /* defined(RT_USING_PTHREADS) && !defined(RT_USING_COMPONENTS_INIT) */
return 0;
}