Merge pull request #5030 from RoryO/fix-compile-msvc-io-utf8

Fix compiling mruby-io on msc with UTF8 enabled
This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-07-11 13:58:41 +09:00
committed by GitHub
+2
View File
@@ -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