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

(cherry-picked from commit 4e6ffed7a5)
This commit is contained in:
Martin Hrubý (hrubymar10) 2018-08-10 13:21:25 +02:00
parent 751976ca37
commit 41b10b7d00

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