fix crash on xiaomi2 if cocos2d-x is built as a dynamic library

This commit is contained in:
minggo 2015-09-08 10:26:37 +08:00
parent 75882e64a0
commit bbe5861367
2 changed files with 7 additions and 4 deletions

View File

@ -1096,6 +1096,11 @@ void SIOClient::fireEvent(const std::string& eventName, const std::string& data)
CCLOGINFO("SIOClient::fireEvent no native event with name %s found", eventName.c_str());
}
void SIOClient::setTag(const char* tag)
{
_tag = tag;
}
//begin SocketIO methods
SocketIO *SocketIO::_inst = nullptr;

View File

@ -262,10 +262,8 @@ public:
* The tag is used to distinguish the various SIOClient objects.
* @param tag string object.
*/
inline void setTag(const char* tag)
{
_tag = tag;
};
void setTag(const char* tag);
/**
* Get tag of SIOClient.
* @return const char* the pointer point to the _tag.