[vlc-commits] macosx: fixed compilation when using the 10.5 or 10.6 SDK

Felix Paul Kühne git at videolan.org
Thu Feb 23 19:11:39 CET 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Feb 23 19:10:41 2012 +0100| [2fdfed843805d398a2e4a59a78777f3288fdf814] | committer: Felix Paul Kühne

macosx: fixed compilation when using the 10.5 or 10.6 SDK
(cherry picked from commit 2619d2f6a9d2fb47712a01066b7d49aefd6b874b)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=2fdfed843805d398a2e4a59a78777f3288fdf814
---

 modules/gui/macosx/CompatibilityFixes.h |    2 --
 modules/gui/macosx/MainWindowTitle.m    |    3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/CompatibilityFixes.h b/modules/gui/macosx/CompatibilityFixes.h
index 1c9eccc..8b7e541 100644
--- a/modules/gui/macosx/CompatibilityFixes.h
+++ b/modules/gui/macosx/CompatibilityFixes.h
@@ -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
diff --git a/modules/gui/macosx/MainWindowTitle.m b/modules/gui/macosx/MainWindowTitle.m
index 9b0e6a2..fa2c4e8 100644
--- a/modules/gui/macosx/MainWindowTitle.m
+++ b/modules/gui/macosx/MainWindowTitle.m
@@ -421,9 +421,12 @@
 
 @end
 
+
 @implementation VLCCustomWindowFullscreenButton
+#ifdef MAC_OS_X_VERSION_10_7
 - (id)extendedAccessibilityAttributeValue: (NSString*)theAttributeName {
     return ([theAttributeName isEqualToString: NSAccessibilitySubroleAttribute] ? NSAccessibilityFullScreenButtonAttribute : nil);
 }
+#endif
 
 @end



More information about the vlc-commits mailing list