Browse Source

[DFS] Use the win32 stat structure if using MS VC++ compiler.

Bernard Xiong 9 years ago
parent
commit
e5edc5b09a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      components/dfs/include/dfs_def.h

+ 4 - 0
components/dfs/include/dfs_def.h

@@ -255,6 +255,9 @@
 #define DFS_S_IWOTH              00002
 #define DFS_S_IWOTH              00002
 #define DFS_S_IXOTH              00001
 #define DFS_S_IXOTH              00001
 
 
+#ifdef _MSC_VER
+#include <wchar.h>
+#else
 struct stat
 struct stat
 {
 {
     rt_device_t st_dev;
     rt_device_t st_dev;
@@ -262,6 +265,7 @@ struct stat
     rt_uint32_t st_size;
     rt_uint32_t st_size;
     rt_time_t   st_mtime;
     rt_time_t   st_mtime;
 };
 };
+#endif
 
 
 struct statfs
 struct statfs
 {
 {