Commit d297d7c5f0396c90c0061f22274c97890bbe84e9

Authored by xiaoyu
1 parent d9b91e0c

修复cocos编译错误

ios/cocos2d/cocos/2d/CCFontAtlas.cpp
@@ -129,7 +129,7 @@ FontAtlas::~FontAtlas() @@ -129,7 +129,7 @@ FontAtlas::~FontAtlas()
129 #if CC_TARGET_PLATFORM != CC_PLATFORM_WIN32 && CC_TARGET_PLATFORM != CC_PLATFORM_ANDROID 129 #if CC_TARGET_PLATFORM != CC_PLATFORM_WIN32 && CC_TARGET_PLATFORM != CC_PLATFORM_ANDROID
130 if (_iconv) 130 if (_iconv)
131 { 131 {
132 - iconv_close(_iconv); 132 + iconv_close((iconv_t)_iconv);
133 _iconv = nullptr; 133 _iconv = nullptr;
134 } 134 }
135 #endif 135 #endif
@@ -262,7 +262,7 @@ void FontAtlas::conversionU32TOGB2312(const std::u32string& u32Text, std::unorde @@ -262,7 +262,7 @@ void FontAtlas::conversionU32TOGB2312(const std::u32string& u32Text, std::unorde
262 size_t inLen = strLen * 2; 262 size_t inLen = strLen * 2;
263 size_t outLen = gb2312StrSize; 263 size_t outLen = gb2312StrSize;
264 264
265 - iconv(_iconv, (char**)&pin, &inLen, &pout, &outLen); 265 + iconv((iconv_t)_iconv, (char**)&pin, &inLen, &pout, &outLen);
266 } 266 }
267 #endif 267 #endif
268 } 268 }
ios/cocos2d/cocos/audio/apple/AudioCache.h
@@ -33,6 +33,7 @@ @@ -33,6 +33,7 @@
33 33
34 #include "platform/CCPlatformMacros.h" 34 #include "platform/CCPlatformMacros.h"
35 #include "audio/apple/AudioMacros.h" 35 #include "audio/apple/AudioMacros.h"
  36 +#include <functional>
36 37
37 NS_CC_BEGIN 38 NS_CC_BEGIN
38 39