Commit d297d7c5f0396c90c0061f22274c97890bbe84e9
1 parent
d9b91e0c
修复cocos编译错误
Showing
2 changed files
with
3 additions
and
2 deletions
ios/cocos2d/cocos/2d/CCFontAtlas.cpp
... | ... | @@ -129,7 +129,7 @@ FontAtlas::~FontAtlas() |
129 | 129 | #if CC_TARGET_PLATFORM != CC_PLATFORM_WIN32 && CC_TARGET_PLATFORM != CC_PLATFORM_ANDROID |
130 | 130 | if (_iconv) |
131 | 131 | { |
132 | - iconv_close(_iconv); | |
132 | + iconv_close((iconv_t)_iconv); | |
133 | 133 | _iconv = nullptr; |
134 | 134 | } |
135 | 135 | #endif |
... | ... | @@ -262,7 +262,7 @@ void FontAtlas::conversionU32TOGB2312(const std::u32string& u32Text, std::unorde |
262 | 262 | size_t inLen = strLen * 2; |
263 | 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 | 267 | #endif |
268 | 268 | } | ... | ... |