[rtdef][libc] solve the conflicts between libc data types and rtdef data types (#5961)

This commit is contained in:
Man, Jianting (Meco)
2022-05-18 22:35:32 -04:00
committed by GitHub
parent 50a42331e6
commit c147ff417c
4 changed files with 18 additions and 3 deletions

View File

@@ -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)