diff --git a/bsp/simulator/drivers/sd_sim.c b/bsp/simulator/drivers/sd_sim.c index ea2aa223ca..866acecd4f 100755 --- a/bsp/simulator/drivers/sd_sim.c +++ b/bsp/simulator/drivers/sd_sim.c @@ -1,6 +1,8 @@ #include -#include #include +#ifdef _WIN32 +#include +#endif #include #include diff --git a/components/libc/SConscript b/components/libc/SConscript index 4ca00c5b86..4ed1dde123 100644 --- a/components/libc/SConscript +++ b/components/libc/SConscript @@ -14,7 +14,7 @@ if GetDepend('RT_USING_LIBC'): elif rtconfig.PLATFORM == 'iar': objs = objs + SConscript('dlib/SConscript') else: - if rtconfig.PLATFORM == 'gcc': + if rtconfig.PLATFORM == 'gcc' and rtconfig.ARCH != 'sim': objs = objs + SConscript('minilibc/SConscript') Return('objs')