diff options
| author | yygg_you <[email protected]> | 2017-10-20 13:26:47 +0800 |
|---|---|---|
| committer | yygg_you <[email protected]> | 2017-10-20 13:26:47 +0800 |
| commit | 2d0c10a0ca78bc4257ce9e5be9e222745c0dc0a7 (patch) | |
| tree | f7a237ec341e73822ba8d44bfdc613c551e9f5d7 /include | |
| parent | e448ecc6ad805109480ecc191f0e2d786216a297 (diff) | |
修改simulator,匹配RTT 3.0
Diffstat (limited to 'include')
| -rw-r--r-- | include/libc/libc_fcntl.h | 1 | ||||
| -rw-r--r-- | include/rtlibc.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/libc/libc_fcntl.h b/include/libc/libc_fcntl.h index 6d6f8ee6d7..68b714b855 100644 --- a/include/libc/libc_fcntl.h +++ b/include/libc/libc_fcntl.h @@ -25,6 +25,7 @@ #define O_DSYNC 010000 #define O_SYNC 04010000 #define O_RSYNC 04010000 +#define O_BINARY 0100000 #define O_DIRECTORY 0200000 #define O_NOFOLLOW 0400000 #define O_CLOEXEC 02000000 diff --git a/include/rtlibc.h b/include/rtlibc.h index 5d6b5a78e3..757329a22c 100644 --- a/include/rtlibc.h +++ b/include/rtlibc.h @@ -38,5 +38,10 @@ typedef signed long off_t; #endif +#if defined(__MINGW32__) +typedef signed long off_t; +typedef int mode_t; +#endif + #endif |
