From 7ac39333b5bc1eadd5fd42048aaf448e8a3cc054 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 14 Dec 2017 01:19:21 +0900 Subject: Use `_open` and `_close` on Windows. --- mrbgems/mruby-io/test/mruby_io_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mrbgems/mruby-io/test/mruby_io_test.c b/mrbgems/mruby-io/test/mruby_io_test.c index c0bbb91ac..36f734382 100644 --- a/mrbgems/mruby-io/test/mruby_io_test.c +++ b/mrbgems/mruby-io/test/mruby_io_test.c @@ -15,6 +15,9 @@ typedef int mode_t; #endif +#define open _open +#define close _close + #ifdef _MSC_VER static int mkstemp(char *p) -- cgit v1.2.3