[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:04 CET 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Feb 23 19:10:41 2012 +0100| [2619d2f6a9d2fb47712a01066b7d49aefd6b874b] | committer: Felix Paul Kühne
macosx: fixed compilation when using the 10.5 or 10.6 SDK
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2619d2f6a9d2fb47712a01066b7d49aefd6b874b
---
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