Fixed compilation errors of blackberry platform.

This commit is contained in:
James Chen 2012-09-26 11:16:44 +08:00
parent e8e55c600b
commit 0dfa1b566b
2 changed files with 4 additions and 2 deletions

View File

@ -40,7 +40,7 @@ public:
virtual long getClassTypeInfo() = 0;
};
static unsigned int getHashCodeByString(const char *key)
static inline unsigned int getHashCodeByString(const char *key)
{
unsigned int len = strlen(key);
const char *end=key+len;

View File

@ -28,6 +28,8 @@ THE SOFTWARE.
#include "platform/CCPlatformMacros.h"
#include <typeinfo>
#include <ctype.h>
#include <string.h>
NS_CC_BEGIN
@ -37,7 +39,7 @@ public:
virtual long getClassTypeInfo() = 0;
};
static unsigned int getHashCodeByString(const char *key)
static inline unsigned int getHashCodeByString(const char *key)
{
unsigned int len = strlen(key);
const char *end=key+len;