From 7fb448e90f3ecaec46868acda9cbb1344954f0a8 Mon Sep 17 00:00:00 2001 From: Dhilan007 Date: Fri, 10 Oct 2014 15:13:05 +0800 Subject: [PATCH] add 'static' for global function --- cocos/platform/CCFileUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {