mirror of
https://github.com/mpv-player/mpv
synced 2025-02-22 15:56:59 +00:00
osx: drop support for OS X 10.7 and earlier
This commit is contained in:
parent
6028244160
commit
b5ca8c41cc
@ -51,31 +51,4 @@ static const NSEventModifierFlags NSEventModifierFlagCommand = NSCommandKeyMask
|
||||
static const NSEventModifierFlags NSEventModifierFlagOption = NSAlternateKeyMask;
|
||||
#endif
|
||||
|
||||
#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8)
|
||||
@interface NSArray (SubscriptingAdditions)
|
||||
- (id)objectAtIndexedSubscript:(NSUInteger)index;
|
||||
@end
|
||||
|
||||
@interface NSMutableArray (SubscriptingAdditions)
|
||||
- (void)setObject: (id)object atIndexedSubscript:(NSUInteger)index;
|
||||
@end
|
||||
|
||||
@interface NSDictionary (SubscriptingAdditions)
|
||||
- (id)objectForKeyedSubscript:(id)key;
|
||||
@end
|
||||
|
||||
@interface NSMutableDictionary (SubscriptingAdditions)
|
||||
- (void)setObject: (id)object forKeyedSubscript:(id)key;
|
||||
@end
|
||||
|
||||
#if __has_feature(objc_bool)
|
||||
#define YES __objc_yes
|
||||
#define NO __objc_no
|
||||
#else
|
||||
#define YES ((BOOL)1)
|
||||
#define NO ((BOOL)0)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* MPV_MACOSX_COMPAT */
|
||||
|
@ -18,10 +18,6 @@
|
||||
#ifndef MPV_MACOSX_VERSIONS
|
||||
#define MPV_MACOSX_VERSIONS
|
||||
|
||||
#if !defined(MAC_OS_X_VERSION_10_8)
|
||||
# define MAC_OS_X_VERSION_10_8 1080
|
||||
#endif
|
||||
|
||||
#if !defined(MAC_OS_X_VERSION_10_9)
|
||||
# define MAC_OS_X_VERSION_10_9 1090
|
||||
#endif
|
||||
|
@ -55,11 +55,9 @@ static CGLError test_gl_version(struct vo *vo,
|
||||
kCGLPFAOpenGLProfile,
|
||||
(CGLPixelFormatAttribute) version,
|
||||
kCGLPFAAccelerated,
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8
|
||||
// leave this as the last entry of the array to not break the fallback
|
||||
// code
|
||||
kCGLPFASupportsAutomaticGraphicsSwitching,
|
||||
#endif
|
||||
0
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user