From 007a6ffbe379548a93ea7036de5019168bcb3507 Mon Sep 17 00:00:00 2001 From: Martin Chang Date: Wed, 18 Jan 2023 16:01:56 +0800 Subject: [PATCH] partial fix for MSYS2 compat (#1468) --- lib/src/ConfigLoader.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/ConfigLoader.cc b/lib/src/ConfigLoader.cc index 28240960..ce358b58 100644 --- a/lib/src/ConfigLoader.cc +++ b/lib/src/ConfigLoader.cc @@ -20,14 +20,18 @@ #include #include #include -#if !defined(_WIN32) || defined(__MINGW32__) +#if !defined(_WIN32) #include #define os_access access #else #include +#ifndef __MINGW32__ #define os_access _waccess #define R_OK 04 #define W_OK 02 +#else +#define os_access access +#endif #endif #include