It is present in both MSVC and MinGW environments.
(F_OK, W_OK, R_OK) [_WIN32]: Add #ifndef to allow
to operation in both MSVC and MinGW environments.
/* integral mismatch, due to misuse of sector short */
#pragma warning (disable : 4761 )
-#include <minmax.h>
+#include <windef.h>
#include <io.h>
#define random rand
#define strncasecmp(s1, s2, s3) _strnicmp(s1, s2, s3)
#define mkdir(dir,perm) _mkdir(dir)
/* used for access */
+#ifndef F_OK
#define F_OK 0 /* FILE existence */
+#endif
+#ifndef W_OK
#define W_OK 02 /* Write permission */
+#endif
+#ifndef R_OK
#define R_OK 04 /* Read permission */
+#endif
typedef int pid_t;
#define vsnprintf _vsnprintf