mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
On Windows, _S_IREAD and _S_IWRITE is defined in sys/stat.h.
This commit is contained in:
@@ -19,6 +19,8 @@ typedef int mode_t;
|
||||
#define close _close
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <sys/stat.h>
|
||||
|
||||
static int
|
||||
mkstemp(char *p)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user