From 7da5dfcdd7957136222005e7fca15d987bcf10ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 3 Jul 2017 11:55:31 +0200 Subject: [PATCH] Don't use stat64 unless we need to --- Common/FileUtil.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Common/FileUtil.cpp b/Common/FileUtil.cpp index 3aceaa607c..9c061ac535 100644 --- a/Common/FileUtil.cpp +++ b/Common/FileUtil.cpp @@ -138,8 +138,8 @@ bool Exists(const std::string &filename) { #endif return true; #else - struct stat64 file_info; - return stat64(fn.c_str(), &file_info) == 0; + struct stat file_info; + return stat(fn.c_str(), &file_info) == 0; #endif } @@ -160,8 +160,8 @@ bool IsDirectory(const std::string &filename) return (result & FILE_ATTRIBUTE_DIRECTORY) == FILE_ATTRIBUTE_DIRECTORY; #else std::string copy(fn); - struct stat64 file_info; - int result = stat64(copy.c_str(), &file_info); + struct stat file_info; + int result = stat(copy.c_str(), &file_info); if (result < 0) { WARN_LOG(COMMON, "IsDirectory: stat failed on %s: %s", fn.c_str(), GetLastErrorMsg());