Fixed building on older macOS SDK

This commit is contained in:
Sam Lantinga 2024-07-25 05:44:54 -07:00
parent d6554a9505
commit e387314a67

View File

@ -64,6 +64,12 @@
@end
@interface NSScreen (SDL)
#if MAC_OS_X_VERSION_MAX_ALLOWED < 120000 /* Added in the 12.0 SDK */
@property(readonly) NSEdgeInsets safeAreaInsets;
#endif
@end
@interface NSWindow (SDL)
#if MAC_OS_X_VERSION_MAX_ALLOWED < 101000 /* Added in the 10.10 SDK */
@property(readonly) NSRect contentLayoutRect;