Add strerror_r() and access() modes to MSVC compat file

This commit is contained in:
Stefan Rueger 2022-08-05 18:47:40 +01:00
parent e590aead93
commit e681035cc4
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@
#pragma comment(lib, "ws2_32.lib") #pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "setupapi.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 F_OK 0
#define PATH_MAX _MAX_PATH #define PATH_MAX _MAX_PATH