Skip to content

Commit 7d57f6b

Browse files
committed
[bsp][simulator] 增加_CRT_DECLARE_NONSTDC_NAMES=0全局宏定义,防止vs内置stdc与libc定义冲突,如dev_t等
1 parent d60c968 commit 7d57f6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bsp/simulator/drivers/SConscript

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ LIBS = []
77
LIBPATH = []
88
CPPPATH = [cwd]
99

10+
CPPDEFINES = ['_CRT_DECLARE_NONSTDC_NAMES=0'] # avoid to conflict with the inherent STDC in VS
11+
1012
# remove no need file.
1113
if GetDepend('PKG_USING_GUIENGINE') == False:
1214
SrcRemove(src, 'sdl_fb.c')
@@ -30,6 +32,6 @@ if sys.platform[0:5]=="linux": #check whether under linux
3032
SrcRemove(src, ['module_win32.c', 'dfs_win32.c'])
3133

3234
group = DefineGroup('Drivers', src, depend = [''],
33-
CPPPATH = CPPPATH, LIBS=LIBS, LIBPATH=LIBPATH)
35+
CPPPATH = CPPPATH, LIBS=LIBS, LIBPATH=LIBPATH, CPPDEFINES = CPPDEFINES)
3436

3537
Return('group')

0 commit comments

Comments
 (0)