From e681035cc45a9cd6341736de7f77d526e6a37915 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Fri, 5 Aug 2022 18:47:40 +0100 Subject: [PATCH] Add strerror_r() and access() modes to MSVC compat file --- src/msvc/msvc_compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/msvc/msvc_compat.h b/src/msvc/msvc_compat.h index eb3e026a..2c072b3b 100644 --- a/src/msvc/msvc_compat.h +++ b/src/msvc/msvc_compat.h @@ -28,6 +28,11 @@ #pragma comment(lib, "ws2_32.lib") #pragma comment(lib, "setupapi.lib") +#define strerror_r(errno,buf,len) strerror_s(buf,len,errno) + +#define R_OK 4 +#define W_OK 2 +#define X_OK 1 #define F_OK 0 #define PATH_MAX _MAX_PATH