diff options
| author | Bernard Xiong <[email protected]> | 2015-05-05 10:20:36 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-05-05 10:20:36 +0800 |
| commit | 1bd91f8b05ce5fada2e247d659f324e8ee1ac732 (patch) | |
| tree | efe723cf8ac12fc27c7e388b1aab5ad51e426093 | |
| parent | 7da82cbf318d30ad5a5011c3ce2462fc4ce383ba (diff) | |
[libc] Add THREAD_SUPPORT and FILE_DESCRIPTOR in dlib.
| -rw-r--r-- | components/libc/dlib/SConscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/libc/dlib/SConscript b/components/libc/dlib/SConscript index a6b7554a07..44be106e03 100644 --- a/components/libc/dlib/SConscript +++ b/components/libc/dlib/SConscript @@ -9,6 +9,10 @@ CPPPATH = [cwd] CPPDEFINES = ['RT_USING_DLIBC'] if rtconfig.PLATFORM == 'iar': + + if GetDepend('RT_USING_DFS'): + CPPDEFINES = CPPDEFINES + ['_DLIB_FILE_DESCRIPTOR', '_DLIB_THREAD_SUPPORT'] + group = DefineGroup('dlib', src, depend = ['RT_USING_LIBC'], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) |
