From 43cc01742fc5cce22ccd2037ba80216c5207fc6a Mon Sep 17 00:00:00 2001 From: BernardXiong Date: Sun, 11 Feb 2018 13:58:20 +0800 Subject: [PATCH] [libc] cleanup code. --- components/libc/compilers/dlib/libc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/libc/compilers/dlib/libc.c b/components/libc/compilers/dlib/libc.c index fe219537e..fa977ab39 100644 --- a/components/libc/compilers/dlib/libc.c +++ b/components/libc/compilers/dlib/libc.c @@ -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); + -- GitLab