diff options
| author | bernard <[email protected]> | 2017-12-13 20:38:56 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-12-13 20:38:56 +0800 |
| commit | eb1daff7d4922c1c54842d1512ed8a9228227b65 (patch) | |
| tree | 48c9298e79df107ebbbf532091853c929a3944fd /bsp/simulator/drivers | |
| parent | 3d28f8f512349d177acb7d62e3c704895de1cd37 (diff) | |
[BSP] Fix the simulator build for Win32.
Diffstat (limited to 'bsp/simulator/drivers')
| -rw-r--r-- | bsp/simulator/drivers/SConscript | 2 | ||||
| -rwxr-xr-x | bsp/simulator/drivers/board.c | 1 | ||||
| -rwxr-xr-x | bsp/simulator/drivers/sdl_fb.c | 10 |
3 files changed, 7 insertions, 6 deletions
diff --git a/bsp/simulator/drivers/SConscript b/bsp/simulator/drivers/SConscript index f71b3f9ea3..153375ec07 100644 --- a/bsp/simulator/drivers/SConscript +++ b/bsp/simulator/drivers/SConscript @@ -8,7 +8,7 @@ LIBPATH = [] CPPPATH = [cwd] # remove no need file. -if GetDepend('RT_USING_RTGUI') == False: +if GetDepend('RT_USING_GUIENGINE') == False: SrcRemove(src, 'sdl_fb.c') else: LIBS.append('SDL') diff --git a/bsp/simulator/drivers/board.c b/bsp/simulator/drivers/board.c index 4e498395c9..2bf10263f2 100755 --- a/bsp/simulator/drivers/board.c +++ b/bsp/simulator/drivers/board.c @@ -86,6 +86,7 @@ void rt_hw_exit(void) #if defined(RT_USING_FINSH) #include <finsh.h> FINSH_FUNCTION_EXPORT_ALIAS(rt_hw_exit, exit, exit rt - thread); +FINSH_FUNCTION_EXPORT_ALIAS(rt_hw_exit, __cmd_quit, exit rt-thread); #endif /* RT_USING_FINSH */ /** diff --git a/bsp/simulator/drivers/sdl_fb.c b/bsp/simulator/drivers/sdl_fb.c index bd43a633b5..5399de8d58 100755 --- a/bsp/simulator/drivers/sdl_fb.c +++ b/bsp/simulator/drivers/sdl_fb.c @@ -306,11 +306,11 @@ static void *sdl_loop(void *lpParam) break; } - if (quit) - { - exit(1); - break; - } + if (quit) + { + exit(1); + break; + } } rt_hw_exit(); |
