Skip to content

Commit 1bd91f8

Browse files
committed
[libc] Add THREAD_SUPPORT and FILE_DESCRIPTOR in dlib.
1 parent 7da82cb commit 1bd91f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/libc/dlib/SConscript

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ CPPPATH = [cwd]
99
CPPDEFINES = ['RT_USING_DLIBC']
1010

1111
if rtconfig.PLATFORM == 'iar':
12+
13+
if GetDepend('RT_USING_DFS'):
14+
CPPDEFINES = CPPDEFINES + ['_DLIB_FILE_DESCRIPTOR', '_DLIB_THREAD_SUPPORT']
15+
1216
group = DefineGroup('dlib', src, depend = ['RT_USING_LIBC'],
1317
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
1418

0 commit comments

Comments
 (0)