diff options
| author | Man, Jianting (Meco) <[email protected]> | 2022-06-04 05:02:35 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-04 17:02:35 +0800 |
| commit | fb3f835089f604bbcb2bec47ba5ed290e7a8a713 (patch) | |
| tree | 161155a17dfd8ec518cc1b32d8386a262d2cfe9d /components/libc | |
| parent | 02b176f8cbbd980ff0d51b971a978c3b6d71d39f (diff) | |
[libc] remove strdup from rtthread.h (#6026)
add __STDC_LIMIT_MACROS macro in Keil
add RT_USING_LIBC in simulator
add _DLIB_ADD_EXTRA_SYMBOLS=0 in IAR
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/armlibc/SConscript | 2 | ||||
| -rw-r--r-- | components/libc/compilers/dlib/SConscript | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/armlibc/SConscript b/components/libc/compilers/armlibc/SConscript index d589c79171..ba0d48ae05 100644 --- a/components/libc/compilers/armlibc/SConscript +++ b/components/libc/compilers/armlibc/SConscript @@ -4,7 +4,7 @@ Import('rtconfig') src = Glob('*.c') group = [] -CPPDEFINES = ['RT_USING_ARM_LIBC', 'RT_USING_LIBC'] +CPPDEFINES = ['RT_USING_ARM_LIBC', 'RT_USING_LIBC', '__STDC_LIMIT_MACROS'] if rtconfig.PLATFORM in ['armcc', 'armclang']: group = DefineGroup('Compiler', src, depend = [''], CPPDEFINES = CPPDEFINES) diff --git a/components/libc/compilers/dlib/SConscript b/components/libc/compilers/dlib/SConscript index 6f7b61f000..2de512a03f 100644 --- a/components/libc/compilers/dlib/SConscript +++ b/components/libc/compilers/dlib/SConscript @@ -4,7 +4,7 @@ Import('rtconfig') src = Glob('*.c') group = [] -CPPDEFINES = ['RT_USING_DLIBC', 'RT_USING_LIBC'] +CPPDEFINES = ['RT_USING_DLIBC', 'RT_USING_LIBC', '_DLIB_ADD_EXTRA_SYMBOLS=0'] if rtconfig.PLATFORM == 'iar': if GetDepend('DFS_USING_POSIX'): |
