소스 검색

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

Bernard Xiong 10 년 전
부모
커밋
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
 {