summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-io
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <[email protected]>2017-12-13 00:08:10 +0900
committerYasuhiro Matsumoto <[email protected]>2017-12-13 00:08:10 +0900
commit7c8c9f9532324fd8c93afa22ed365c74e7e7e610 (patch)
tree14d872dd0af61fd030bfb6f6bebdfbbf3f118062 /mrbgems/mruby-io
parent7ff907f6805007588775a5d872b4c6d9cb15746e (diff)
downloadmruby-7c8c9f9532324fd8c93afa22ed365c74e7e7e610.tar.gz
mruby-7c8c9f9532324fd8c93afa22ed365c74e7e7e610.zip
mingw have mkstemp
Diffstat (limited to 'mrbgems/mruby-io')
-rw-r--r--mrbgems/mruby-io/test/mruby_io_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-io/test/mruby_io_test.c b/mrbgems/mruby-io/test/mruby_io_test.c
index 53824522d..7e25dddc2 100644
--- a/mrbgems/mruby-io/test/mruby_io_test.c
+++ b/mrbgems/mruby-io/test/mruby_io_test.c
@@ -15,12 +15,14 @@
typedef int mode_t;
#endif
+#ifdef _MSC_VER
static int
mkstemp(char *p)
{
_mktemp(p);
return 0;
}
+#endif
static char*
mkdtemp(char *temp)