OS X: Fix -Wdeprecated-declarations compiler warnings in the startup windows.

git-svn-id: https://svn.eduke32.com/eduke32@5380 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-10-10 06:57:46 +00:00
parent f149bb0fbc
commit d6f06b9123
4 changed files with 20 additions and 0 deletions

View file

@ -191,8 +191,13 @@ int startwin_run(void)
[startwin setupRunMode];
switch ([nsapp runModalForWindow:[startwin window]]) {
#ifdef MAC_OS_X_VERSION_10_9
case NSModalResponseStop: retval = 1; break;
case NSModalResponseAbort: retval = 0; break;
#else
case NSRunStoppedResponse: retval = 1; break;
case NSRunAbortedResponse: retval = 0; break;
#endif
default: retval = -1;
}

View file

@ -422,8 +422,13 @@ int startwin_run(void)
[startwin setupRunMode];
switch ([nsapp runModalForWindow:[startwin window]]) {
#ifdef MAC_OS_X_VERSION_10_9
case NSModalResponseStop: retval = 1; break;
case NSModalResponseAbort: retval = 0; break;
#else
case NSRunStoppedResponse: retval = 1; break;
case NSRunAbortedResponse: retval = 0; break;
#endif
default: retval = -1;
}

View file

@ -438,8 +438,13 @@ int startwin_run(void)
[startwin setupRunMode];
switch ([NSApp runModalForWindow:[startwin window]]) {
#ifdef MAC_OS_X_VERSION_10_9
case NSModalResponseStop: retval = 1; break;
case NSModalResponseAbort: retval = 0; break;
#else
case NSRunStoppedResponse: retval = 1; break;
case NSRunAbortedResponse: retval = 0; break;
#endif
default: retval = -1;
}

View file

@ -279,8 +279,13 @@ int startwin_run(void)
switch ([NSApp runModalForWindow:[startwin window]])
{
#ifdef MAC_OS_X_VERSION_10_9
case NSModalResponseStop: retval = 1; break;
case NSModalResponseAbort: retval = 0; break;
#else
case NSRunStoppedResponse: retval = 1; break;
case NSRunAbortedResponse: retval = 0; break;
#endif
default: retval = -1;
}