diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-07-11 13:58:41 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-11 13:58:41 +0900 |
| commit | 042f98912f6019ed5f4f3e994a11c87ae0907c5d (patch) | |
| tree | 1e26b16bda78291e30930a59a5bede36631d8286 | |
| parent | c5fd8cbbe1bfccb9a0724ce89cf73c16b3c37f73 (diff) | |
| parent | bb23faae65bc32779f9b9a60d717cef9299638b7 (diff) | |
| download | mruby-042f98912f6019ed5f4f3e994a11c87ae0907c5d.tar.gz mruby-042f98912f6019ed5f4f3e994a11c87ae0907c5d.zip | |
Merge pull request #5030 from RoryO/fix-compile-msvc-io-utf8
Fix compiling mruby-io on msc with UTF8 enabled
| -rw-r--r-- | mrbgems/mruby-io/src/io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-io/src/io.c b/mrbgems/mruby-io/src/io.c index 505ceb248..0d7543578 100644 --- a/mrbgems/mruby-io/src/io.c +++ b/mrbgems/mruby-io/src/io.c @@ -18,6 +18,7 @@ #if defined(_WIN32) || defined(_WIN64) #include <winsock.h> #include <io.h> + #include <basetsd.h> #define open _open #define close _close #define dup _dup @@ -32,6 +33,7 @@ typedef long fsuseconds_t; typedef int fmode_t; typedef int mrb_io_read_write_size; + typedef SSIZE_T ssize_t; #ifndef O_TMPFILE #define O_TMPFILE O_TEMPORARY |
