From e5edc5b09a6c66321114d3c417143c5bbe84df68 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 11 Oct 2015 15:39:07 +0800 Subject: [PATCH] [DFS] Use the win32 stat structure if using MS VC++ compiler. --- components/dfs/include/dfs_def.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/dfs/include/dfs_def.h b/components/dfs/include/dfs_def.h index e509c4a3d..0f75a5162 100644 --- a/components/dfs/include/dfs_def.h +++ b/components/dfs/include/dfs_def.h @@ -255,6 +255,9 @@ #define DFS_S_IWOTH 00002 #define DFS_S_IXOTH 00001 +#ifdef _MSC_VER +#include +#else struct stat { rt_device_t st_dev; @@ -262,6 +265,7 @@ struct stat rt_uint32_t st_size; rt_time_t st_mtime; }; +#endif struct statfs { -- GitLab