add 'static' for global function

This commit is contained in:
Dhilan007 2014-10-10 15:13:05 +08:00
parent 250875b081
commit 7fb448e90f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {