From 088bd2d81162c7ca9300a95caccb7eb52cd4f6d7 Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Tue, 6 Jun 2017 11:57:13 +0900 Subject: [PATCH] common: implement g_file_readable for WIN32 --- common/os_calls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/os_calls.c b/common/os_calls.c index 592d7d6d..d20dc49f 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -2239,7 +2239,7 @@ int g_file_readable(const char *filename) { #if defined(_WIN32) - return 0; /* TODO: what should be done here? */ + return _waccess(filename, 04) == 0; #else return access(filename, R_OK) == 0; #endif