提交 43cc0174 编写于 作者: B BernardXiong

[libc] cleanup code.

上级 3f931c0d
......@@ -36,7 +36,7 @@
int libc_system_init(void)
{
#if defined(RT_USING_DFS) & defined(RT_USING_DFS_DEVFS)
#if defined(RT_USING_DFS) && defined(RT_USING_DFS_DEVFS)
rt_device_t dev_console;
dev_console = rt_console_get_device();
......@@ -50,10 +50,11 @@ int libc_system_init(void)
}
#endif
#if defined RT_USING_PTHREADS && !defined RT_USING_COMPONENTS_INIT
#if defined (RT_USING_PTHREADS) && !defined (RT_USING_COMPONENTS_INIT)
pthread_system_init();
#endif
return 0;
}
INIT_COMPONENT_EXPORT(libc_system_init);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册