diff options
| author | BernardXiong <[email protected]> | 2018-02-11 13:58:20 +0800 |
|---|---|---|
| committer | BernardXiong <[email protected]> | 2018-02-11 13:58:20 +0800 |
| commit | 43cc01742fc5cce22ccd2037ba80216c5207fc6a (patch) | |
| tree | 6bc90718f24cddc5d764cf98c83173baca9f93b7 /components/libc/compilers | |
| parent | 3f931c0df4bb38673c9689c6858f6c6bb299e860 (diff) | |
[libc] cleanup code.
Diffstat (limited to 'components/libc/compilers')
| -rw-r--r-- | components/libc/compilers/dlib/libc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/libc/compilers/dlib/libc.c b/components/libc/compilers/dlib/libc.c index fe219537e3..fa977ab399 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); + |
