diff --git a/cocos/platform/CCFileUtils.cpp b/cocos/platform/CCFileUtils.cpp index 70769a485d..13d5940b9a 100644 --- a/cocos/platform/CCFileUtils.cpp +++ b/cocos/platform/CCFileUtils.cpp @@ -1108,7 +1108,7 @@ bool FileUtils::createDirectory(const std::string& path) } #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) -int unlink_cb(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) +static int unlink_cb(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) { auto ret = remove(fpath); if (ret) {