diff options
| author | Rory OConnell <[email protected]> | 2020-07-05 20:00:21 -0700 |
|---|---|---|
| committer | Rory OConnell <[email protected]> | 2020-07-10 21:18:30 -0700 |
| commit | 308c6c8311dec0ff9add28af3665e6a7ef5a8c51 (patch) | |
| tree | 273fd9922e1873432db8e4f747645cdbe5b89708 | |
| parent | ac8360003ecfa1ec21295533c9213f17fd8e39bb (diff) | |
| download | mruby-308c6c8311dec0ff9add28af3665e6a7ef5a8c51.tar.gz mruby-308c6c8311dec0ff9add28af3665e6a7ef5a8c51.zip | |
Need typedef of ssize_t for msc compiler
| -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..073f7c107 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 |
