summaryrefslogtreecommitdiff
path: root/components/libc/compilers/newlib/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'components/libc/compilers/newlib/SConscript')
-rw-r--r--components/libc/compilers/newlib/SConscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/newlib/SConscript b/components/libc/compilers/newlib/SConscript
index c041a4e944..b1d4a53eb1 100644
--- a/components/libc/compilers/newlib/SConscript
+++ b/components/libc/compilers/newlib/SConscript
@@ -17,7 +17,7 @@ if rtconfig.PLATFORM == 'gcc':
print('Newlib version:' + GetNewLibVersion(rtconfig))
# identify this is Newlib, and only enable POSIX.1-1990
- CPPDEFINES = ['RT_USING_NEWLIB', '_POSIX_C_SOURCE=1']
+ CPPDEFINES = ['RT_USING_NEWLIB', 'RT_USING_LIBC', '_POSIX_C_SOURCE=1']
group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, LIBS = LIBS)