Commit 2619d2f6 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed compilation when using the 10.5 or 10.6 SDK

parent 66fd094d
...@@ -79,8 +79,6 @@ extern OSErr UpdateSystemActivity(UInt8 activity); ...@@ -79,8 +79,6 @@ extern OSErr UpdateSystemActivity(UInt8 activity);
#pragma Fixes for OS X Snow Leopard (10.6) #pragma Fixes for OS X Snow Leopard (10.6)
#ifndef MAC_OS_X_VERSION_10_7 #ifndef MAC_OS_X_VERSION_10_7
extern NSString *const NSAccessibilityFullScreenButtonAttribute;
enum { enum {
NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7, NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7,
NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8 NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8
......
...@@ -421,9 +421,12 @@ ...@@ -421,9 +421,12 @@
@end @end
@implementation VLCCustomWindowFullscreenButton @implementation VLCCustomWindowFullscreenButton
#ifdef MAC_OS_X_VERSION_10_7
- (id)extendedAccessibilityAttributeValue: (NSString*)theAttributeName { - (id)extendedAccessibilityAttributeValue: (NSString*)theAttributeName {
return ([theAttributeName isEqualToString: NSAccessibilitySubroleAttribute] ? NSAccessibilityFullScreenButtonAttribute : nil); return ([theAttributeName isEqualToString: NSAccessibilitySubroleAttribute] ? NSAccessibilityFullScreenButtonAttribute : nil);
} }
#endif
@end @end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment