Fixed building with the 10.10 SDK
authorSam Lantinga <slouken@libsdl.org>
Tue, 11 Dec 2018 20:04:10 -0800
changeset 124738a05e33d1b4b
parent 12472 b661dfdd7aba
child 12474 6e387413a916
Fixed building with the 10.10 SDK
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Tue Dec 11 19:50:58 2018 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Tue Dec 11 20:04:10 2018 -0800
     1.3 @@ -1356,10 +1356,12 @@
     1.4          return SDL_SetError("%s", [[e reason] UTF8String]);
     1.5      }
     1.6  
     1.7 +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 /* Added in the 10.12.0 SDK. */
     1.8      /* By default, don't allow users to make our window tabbed in 10.12 or later */
     1.9      if ([nswindow respondsToSelector:@selector(setTabbingMode:)]) {
    1.10          [nswindow setTabbingMode:NSWindowTabbingModeDisallowed];
    1.11      }
    1.12 +#endif
    1.13  
    1.14      if (videodata->allow_spaces) {
    1.15          SDL_assert(floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6);