Преглед изворни кода

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

Bernard Xiong пре 9 година
родитељ
комит
e5edc5b09a
1 измењених фајлова са 4 додато и 0 уклоњено
  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_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
 {