]> git.sesse.net Git - vlc/commitdiff
macosx: fixed compilation when using the 10.5 or 10.6 SDK
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 23 Feb 2012 18:10:41 +0000 (19:10 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 23 Feb 2012 18:11:03 +0000 (19:11 +0100)
modules/gui/macosx/CompatibilityFixes.h
modules/gui/macosx/MainWindowTitle.m

index 1c9eccc893a005f7978fdd3b264433dcdb5c5c6d..8b7e5411b809e0f30d330e0b5b86480e6544cca3 100644 (file)
@@ -79,8 +79,6 @@ extern OSErr UpdateSystemActivity(UInt8 activity);
 #pragma Fixes for OS X Snow Leopard (10.6)
 
 #ifndef MAC_OS_X_VERSION_10_7
-extern NSString *const NSAccessibilityFullScreenButtonAttribute;
-
 enum {
     NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7,
     NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8
index 9b0e6a2292724a507b598c4bd6e27bfa96d91a23..fa2c4e8df3a05ec7c4b12e08a4f3fd105f301609 100644 (file)
 
 @end
 
+
 @implementation VLCCustomWindowFullscreenButton
+#ifdef MAC_OS_X_VERSION_10_7
 - (id)extendedAccessibilityAttributeValue: (NSString*)theAttributeName {
     return ([theAttributeName isEqualToString: NSAccessibilitySubroleAttribute] ? NSAccessibilityFullScreenButtonAttribute : nil);
 }
+#endif
 
 @end