Fixed building back to Mac OSX using the 10.7 SDK
authorSam Lantinga <slouken@libsdl.org>
Mon, 23 Mar 2020 11:42:44 -0700
changeset 1366683df8de77e12
parent 13664 1c73cc1e4a3a
child 13667 daed33b4f74a
Fixed building back to Mac OSX using the 10.7 SDK
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sun Mar 22 14:32:47 2020 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Mar 23 11:42:44 2020 -0700
     1.3 @@ -1813,6 +1813,13 @@
     1.4             This is no longer needed as of Mac OS X 10.15, according to bug 4822.
     1.5           */
     1.6          NSProcessInfo *processInfo = [NSProcessInfo processInfo];
     1.7 +#if MAC_OS_X_VERSION_MAX_ALLOWED < 101000 /* NSOperatingSystemVersion added in the 10.10 SDK */
     1.8 +        typedef struct {
     1.9 +            NSInteger majorVersion;
    1.10 +            NSInteger minorVersion;
    1.11 +            NSInteger patchVersion;
    1.12 +        } NSOperatingSystemVersion;
    1.13 +#endif
    1.14          NSOperatingSystemVersion version = { 10, 15, 0 };
    1.15          if (![processInfo respondsToSelector:@selector(isOperatingSystemAtLeastVersion:)] ||
    1.16              ![processInfo isOperatingSystemAtLeastVersion:version]) {