From f94221a93bd9c877e284de36ece9679696bb7e74 Mon Sep 17 00:00:00 2001 From: James Chen Date: Sat, 4 Jan 2014 22:21:14 +0800 Subject: [PATCH] compilation error fix. ssize_t -> int --- cocos/2d/ccUTF8.cpp | 6 +++--- cocos/2d/ccUTF8.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cocos/2d/ccUTF8.cpp b/cocos/2d/ccUTF8.cpp index 1cde665dfd..3436d981d7 100644 --- a/cocos/2d/ccUTF8.cpp +++ b/cocos/2d/ccUTF8.cpp @@ -398,9 +398,9 @@ cc_unichar_to_utf8 (unsigned int c, **/ char * cc_utf16_to_utf8 (const unsigned short *str, - ssize_t len, - ssize_t *items_read, - ssize_t *items_written) + int len, + int *items_read, + int *items_written) { /* This function and g_utf16_to_ucs4 are almost exactly identical - The lines that differ * are marked. diff --git a/cocos/2d/ccUTF8.h b/cocos/2d/ccUTF8.h index 76e6d74dc9..5065785732 100644 --- a/cocos/2d/ccUTF8.h +++ b/cocos/2d/ccUTF8.h @@ -80,9 +80,9 @@ CC_DLL unsigned short* cc_utf8_to_utf16(const char* str_old, int length = -1, in **/ CC_DLL char * cc_utf16_to_utf8 (const unsigned short *str, - ssize_t len, - ssize_t *items_read, - ssize_t *items_written); + int len, + int *items_read, + int *items_written); NS_CC_END