Skip to content
Browse files

Mac build: fix build with gcc

gcc doesnt support the objc literal syntax
  • Loading branch information...
1 parent 3db93b8 commit b6fd1850c299a4fc430741e9b243095a00c5fbac @bradallred bradallred committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 apple/CocoaWrapper/mac/CocoaWrapper.mm
View
3 apple/CocoaWrapper/mac/CocoaWrapper.mm
@@ -146,7 +146,8 @@ - (IBAction)launchGame:(id) sender
}
if (sender) {
// Note: use NSRunLoop over NSObject performSelector!
- [[NSRunLoop mainRunLoop] performSelector:@selector(launchGame:) target:self argument:nil order:0 modes:@[NSDefaultRunLoopMode]];
+ NSArray* modes = [NSArray arrayWithObject:NSDefaultRunLoopMode];
+ [[NSRunLoop mainRunLoop] performSelector:@selector(launchGame:) target:self argument:nil order:0 modes:modes];
return;
}

0 comments on commit b6fd185

Please sign in to comment.
Something went wrong with that request. Please try again.