diff --git a/bsp/simulator/rtconfig.h b/bsp/simulator/rtconfig.h index 5e0f9ead12..c01930fe59 100755 --- a/bsp/simulator/rtconfig.h +++ b/bsp/simulator/rtconfig.h @@ -10,6 +10,8 @@ #undef RT_USING_MINILIBC #define NORESOURCE //RT_VESRION in winuser.h #define _CRT_ERRNO_DEFINED //errno macro redefinition +#define _INC_WTIME_INL//dfs_elm.c time.h conflicts with wtime.inl +#define _INC_TIME_INL //dfs_elm.c time.h conflicts with wtime.inl /* disable some warning in MSC */ #pragma warning(disable:4273) /* to ignore: warning C4273: inconsistent dll linkage */ diff --git a/components/dfs/filesystems/elmfat/dfs_elm.c b/components/dfs/filesystems/elmfat/dfs_elm.c index 4a69b6a64f..4f24a0cd72 100644 --- a/components/dfs/filesystems/elmfat/dfs_elm.c +++ b/components/dfs/filesystems/elmfat/dfs_elm.c @@ -17,12 +17,11 @@ * 2013-03-01 aozima fixed the stat(st_mtime) issue. */ -#include -#include - #include #include "ffconf.h" #include "ff.h" +#include +#include /* ELM FatFs provide a DIR struct */ #define HAVE_DIR_STRUCTURE