diff options
| author | Bernard Xiong <[email protected]> | 2021-09-27 14:14:42 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-27 14:14:42 +0800 |
| commit | c6a40b77c8f17f76cf6cb3d2c80c6271363d2351 (patch) | |
| tree | 49a64f522c6c036a2bdb1127b113067fd451808d /bsp/simulator/drivers/SConscript | |
| parent | 4a9ecd8d0d3cf4bfbbd05ab76829879aa0b6423d (diff) | |
| parent | 7d57f6b17580c60f8b1bebdde22450a7fce570ec (diff) | |
Merge pull request #5098 from mysterywolf/simulator
[bsp][simulator] 消除大部分编译错误
Diffstat (limited to 'bsp/simulator/drivers/SConscript')
| -rw-r--r-- | bsp/simulator/drivers/SConscript | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bsp/simulator/drivers/SConscript b/bsp/simulator/drivers/SConscript index 2fd17ddf80..87a79bd4c7 100644 --- a/bsp/simulator/drivers/SConscript +++ b/bsp/simulator/drivers/SConscript @@ -7,6 +7,8 @@ LIBS = [] LIBPATH = [] CPPPATH = [cwd] +CPPDEFINES = ['_CRT_DECLARE_NONSTDC_NAMES=0'] # avoid to conflict with the inherent STDC in VS + # remove no need file. if GetDepend('PKG_USING_GUIENGINE') == False: SrcRemove(src, 'sdl_fb.c') @@ -30,6 +32,6 @@ if sys.platform[0:5]=="linux": #check whether under linux SrcRemove(src, ['module_win32.c', 'dfs_win32.c']) group = DefineGroup('Drivers', src, depend = [''], - CPPPATH = CPPPATH, LIBS=LIBS, LIBPATH=LIBPATH) + CPPPATH = CPPPATH, LIBS=LIBS, LIBPATH=LIBPATH, CPPDEFINES = CPPDEFINES) Return('group') |
