mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
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:
parent
f149bb0fbc
commit
d6f06b9123
4 changed files with 20 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue