mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Need to include io.h anyway for _WIN32/64; ref #3938
This commit is contained in:
@@ -6,8 +6,11 @@
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
|
||||
#include <io.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#include <io.h>
|
||||
#define close _close
|
||||
#define unlink _unlink
|
||||
|
||||
@@ -23,10 +26,6 @@ mkstemp(char *p)
|
||||
return fd;
|
||||
return -1;
|
||||
}
|
||||
#else
|
||||
|
||||
#include <io.h>
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user