[libc] cleanup code.

This commit is contained in:
BernardXiong 2018-02-11 13:58:20 +08:00
parent 3f931c0df4
commit 43cc01742f
1 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,7 @@
int libc_system_init(void) 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; rt_device_t dev_console;
dev_console = rt_console_get_device(); dev_console = rt_console_get_device();
@ -50,10 +50,11 @@ int libc_system_init(void)
} }
#endif #endif
#if defined RT_USING_PTHREADS && !defined RT_USING_COMPONENTS_INIT #if defined (RT_USING_PTHREADS) && !defined (RT_USING_COMPONENTS_INIT)
pthread_system_init(); pthread_system_init();
#endif #endif
return 0; return 0;
} }
INIT_COMPONENT_EXPORT(libc_system_init); INIT_COMPONENT_EXPORT(libc_system_init);