Fix macOS specific warning "Class SDLApplication is implemented in both ..."

This commit is contained in:
Martin Hrubý (hrubymar10) 2018-08-10 13:21:25 +02:00
parent 946a82972f
commit d30e24590f
No known key found for this signature in database
GPG key ID: 3042E73421447651

View file

@ -11,10 +11,10 @@
extern "C" int wesnoth_main(int argc, char **argv);
static std::vector<char*> gArgs;
@interface SDLApplication : NSApplication
@interface WesnothSDLApplication : NSApplication
@end
@implementation SDLApplication
@implementation WesnothSDLApplication
/* Invoked from the Quit menu item */
- (void)terminate:(id)sender
{
@ -113,7 +113,7 @@ int main (int argc, char **argv)
}
gArgs.push_back(nullptr);
[SDLApplication sharedApplication];
[WesnothSDLApplication sharedApplication];
// loadNibNamed:owner:topLevelObjects was introduced in 10.8 (Mountain Lion).
// In order to support Lion and Mountain Lion +, we need to see which OS we're