fix signal sending on 64bit ios

This commit is contained in:
Roman Volosovskyi 2016-12-14 14:04:10 +02:00
parent 4322d71714
commit ddfd949a71
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ static bool initLibrary() {
bool StatusServiceSignalEvent(const char *jsonEvent) {
if (!initLibrary()) return false;
objc_msgSend(statusServiceClassRef, statusServiceSelector, jsonEvent);
void (*action)(id, SEL, const char *) = (void (*)(id, SEL, const char *)) objc_msgSend;
action(statusServiceClassRef, statusServiceSelector, jsonEvent);
return true;
}