From c1a0e57c4170a4147f6769be55b9541368a84017 Mon Sep 17 00:00:00 2001 From: HALX99 Date: Thu, 28 Nov 2019 09:59:18 +0800 Subject: [PATCH] Update CCFileUtils.cpp --- cocos/platform/CCFileUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/platform/CCFileUtils.cpp b/cocos/platform/CCFileUtils.cpp index 8dc57ac7e2ec..f436c9591c54 100644 --- a/cocos/platform/CCFileUtils.cpp +++ b/cocos/platform/CCFileUtils.cpp @@ -1368,9 +1368,9 @@ int64_t FileUtils::getFileSize(const std::string &filepath) const return 0; } - struct stat64 info; + struct stat info; // Get data associated with "crt_stat.c": - int result = ::stat64(fullpath.c_str(), &info); + int result = ::stat(fullpath.c_str(), &info); // Check if statistics are valid: if (result != 0)