Skip to content

Commit

Permalink
Fixed compiler warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
noahmetzger committed Apr 13, 2018
1 parent d88a6b5 commit d597570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccutil/mainblk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d597570

Please sign in to comment.