mirror of https://github.com/encounter/SDL.git
Fixed building with the 10.10 SDK
This commit is contained in:
parent
98829d37e8
commit
bd08d72dec
|
@ -1356,10 +1356,12 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window)
|
||||||
return SDL_SetError("%s", [[e reason] UTF8String]);
|
return SDL_SetError("%s", [[e reason] UTF8String]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 /* Added in the 10.12.0 SDK. */
|
||||||
/* By default, don't allow users to make our window tabbed in 10.12 or later */
|
/* By default, don't allow users to make our window tabbed in 10.12 or later */
|
||||||
if ([nswindow respondsToSelector:@selector(setTabbingMode:)]) {
|
if ([nswindow respondsToSelector:@selector(setTabbingMode:)]) {
|
||||||
[nswindow setTabbingMode:NSWindowTabbingModeDisallowed];
|
[nswindow setTabbingMode:NSWindowTabbingModeDisallowed];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (videodata->allow_spaces) {
|
if (videodata->allow_spaces) {
|
||||||
SDL_assert(floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6);
|
SDL_assert(floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6);
|
||||||
|
|
Loading…
Reference in New Issue