On Windows, _S_IREAD and _S_IWRITE is defined in sys/stat.h.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-12-14 01:19:44 +09:00
parent 7ac39333b5
commit 5b304c156c
+2
View File
@@ -19,6 +19,8 @@ typedef int mode_t;
#define close _close
#ifdef _MSC_VER
#include <sys/stat.h>
static int
mkstemp(char *p)
{