Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed building back to Mac OSX using the 10.7 SDK
  • Loading branch information
slouken committed Mar 23, 2020
1 parent 19a5f4a commit 1fd548b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -1813,6 +1813,13 @@ - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
This is no longer needed as of Mac OS X 10.15, according to bug 4822.
*/
NSProcessInfo *processInfo = [NSProcessInfo processInfo];
#if MAC_OS_X_VERSION_MAX_ALLOWED < 101000 /* NSOperatingSystemVersion added in the 10.10 SDK */
typedef struct {
NSInteger majorVersion;
NSInteger minorVersion;
NSInteger patchVersion;
} NSOperatingSystemVersion;
#endif
NSOperatingSystemVersion version = { 10, 15, 0 };
if (![processInfo respondsToSelector:@selector(isOperatingSystemAtLeastVersion:)] ||
![processInfo isOperatingSystemAtLeastVersion:version]) {
Expand Down

0 comments on commit 1fd548b

Please sign in to comment.