summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-io
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <[email protected]>2017-12-13 00:21:30 +0900
committerYasuhiro Matsumoto <[email protected]>2017-12-13 00:21:30 +0900
commitb07269584ce9a255655cff167ecf09d1dddf62f7 (patch)
tree475c6b40fb7ecbb68aebfbc9ceb7c60655ac66c0 /mrbgems/mruby-io
parente0e23b17655ae599dbb402cf0beb0c59e8ebd3c6 (diff)
downloadmruby-b07269584ce9a255655cff167ecf09d1dddf62f7.tar.gz
mruby-b07269584ce9a255655cff167ecf09d1dddf62f7.zip
fix build for MSVC
Diffstat (limited to 'mrbgems/mruby-io')
-rw-r--r--mrbgems/mruby-io/src/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-io/src/file.c b/mrbgems/mruby-io/src/file.c
index e38e6a2b6..11b05d31c 100644
--- a/mrbgems/mruby-io/src/file.c
+++ b/mrbgems/mruby-io/src/file.c
@@ -25,6 +25,7 @@
#include <string.h>
#if defined(_WIN32) || defined(_WIN64)
#include <windows.h>
+ #include <io.h>
#define NULL_FILE "NUL"
#define UNLINK _unlink
#define GETCWD _getcwd