Skip to content

Commit e5edc5b

Browse files
committed
[DFS] Use the win32 stat structure if using MS VC++ compiler.
1 parent d859e3e commit e5edc5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/dfs/include/dfs_def.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,17 @@
255255
#define DFS_S_IWOTH 00002
256256
#define DFS_S_IXOTH 00001
257257

258+
#ifdef _MSC_VER
259+
#include <wchar.h>
260+
#else
258261
struct stat
259262
{
260263
rt_device_t st_dev;
261264
rt_uint16_t st_mode;
262265
rt_uint32_t st_size;
263266
rt_time_t st_mtime;
264267
};
268+
#endif
265269

266270
struct statfs
267271
{

0 commit comments

Comments
 (0)