提交 7d57f6b1 编写于 作者: mysterywolf's avatar mysterywolf

[bsp][simulator] 增加_CRT_DECLARE_NONSTDC_NAMES=0全局宏定义,防止vs内置stdc与libc定义冲突,如dev_t等

上级 d60c9689
......@@ -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')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册