mingw support for simulator: dfs/dfs_win32
This commit is contained in:
parent
9f355875d8
commit
8928f4e4b7
|
@ -27,6 +27,22 @@
|
||||||
#include <WinError.h>
|
#include <WinError.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
#if defined(__MINGW32__) && defined(_NO_OLDNAMES)
|
||||||
|
#define O_RDONLY _O_RDONLY
|
||||||
|
#define O_WRONLY _O_WRONLY
|
||||||
|
#define O_RDWR _O_RDWR
|
||||||
|
#define O_ACCMODE _O_ACCMODE
|
||||||
|
#define O_APPEND _O_APPEND
|
||||||
|
#define O_CREAT _O_CREAT
|
||||||
|
#define O_TRUNC _O_TRUNC
|
||||||
|
#define O_EXCL _O_EXCL
|
||||||
|
#define O_TEXT _O_TEXT
|
||||||
|
#define O_BINARY _O_BINARY
|
||||||
|
#define O_TEMPORARY _O_TEMPORARY
|
||||||
|
#define O_NOINHERIT _O_NOINHERIT
|
||||||
|
#define O_SEQUENTIAL _O_SEQUENTIAL
|
||||||
|
#define O_RANDOM _O_RANDOM
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
* RT-Thread DFS Interface for win-directory as an disk device
|
* RT-Thread DFS Interface for win-directory as an disk device
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
/* DFS: windows share directory mounted to rt-thread/dfs */
|
/* DFS: windows share directory mounted to rt-thread/dfs */
|
||||||
/* only used in bsp/simulator */
|
/* only used in bsp/simulator */
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
//#define RT_USING_DFS_WINSHAREDIR
|
#define RT_USING_DFS_WINSHAREDIR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* the max number of mounted file system */
|
/* the max number of mounted file system */
|
||||||
|
|
Loading…
Reference in New Issue