summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-10-11 15:39:07 +0800
committerBernard Xiong <[email protected]>2015-10-11 15:39:07 +0800
commite5edc5b09a6c66321114d3c417143c5bbe84df68 (patch)
treec336fa3bd8e2e4ff807675ae4bac677b0b26b584
parentd859e3e8b8b0798899d5b6898ce6e884978996e5 (diff)
[DFS] Use the win32 stat structure if using MS VC++ compiler.
-rw-r--r--components/dfs/include/dfs_def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/dfs/include/dfs_def.h b/components/dfs/include/dfs_def.h
index e509c4a3da..0f75a5162b 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 <wchar.h>
+#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
{