From d597570737213500306fa28e8066abf05e620057 Mon Sep 17 00:00:00 2001 From: Noah Metzger Date: Fri, 13 Apr 2018 11:31:50 +0200 Subject: [PATCH] Fixed compiler warning Warning C4996: 'access': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _access. Signed-off-by: Noah Metzger --- ccutil/mainblk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccutil/mainblk.cpp b/ccutil/mainblk.cpp index 9b05bdbc67..71ab231166 100644 --- a/ccutil/mainblk.cpp +++ b/ccutil/mainblk.cpp @@ -62,7 +62,7 @@ void CCUtil::main_setup(const char *argv0, const char *basename) { /* Use tessdata prefix from the environment. */ datadir = tessdata_prefix; #if defined(_WIN32) - } else if (datadir == NULL || access(datadir.string(), 0) != 0) { + } else if (datadir == NULL || _access(datadir.string(), 0) != 0) { /* Look for tessdata in directory of executable. */ char drive[_MAX_DRIVE]; char dir[_MAX_DIR];