Skip to content

Commit

Permalink
Fixed building with the 10.10 SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 12, 2018
1 parent 98829d3 commit bd08d72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -1356,10 +1356,12 @@ - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
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 */
if ([nswindow respondsToSelector:@selector(setTabbingMode:)]) {
[nswindow setTabbingMode:NSWindowTabbingModeDisallowed];
}
#endif

if (videodata->allow_spaces) {
SDL_assert(floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6);
Expand Down

0 comments on commit bd08d72

Please sign in to comment.