vlc/vlc-1.2 | branch: master | Felix Paul Kühne <[email protected]> | Sat Jan 7 18:52:48 2012 +0100| [f209b25493954e216efa4681b394a45beddf1780] | committer: Jean-Baptiste Kempf
macosx: fixed compilation issue on Leopard (cherry picked from commit 4665c50e94985e35eec8d3f2171812440a17d806) (cherry picked from commit c4808dbd84321a9447c4bc2d3c761586a3317e47) Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=f209b25493954e216efa4681b394a45beddf1780 --- modules/gui/macosx/CompatibilityFixes.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/modules/gui/macosx/CompatibilityFixes.h b/modules/gui/macosx/CompatibilityFixes.h index 3732546..8b7e541 100644 --- a/modules/gui/macosx/CompatibilityFixes.h +++ b/modules/gui/macosx/CompatibilityFixes.h @@ -1,7 +1,7 @@ /***************************************************************************** * CompatibilityFixes.h: MacOS X interface module ***************************************************************************** - * Copyright (C) 2011 VLC authors and VideoLAN + * Copyright (C) 2011-2012 VLC authors and VideoLAN * $Id$ * * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org> @@ -57,15 +57,22 @@ enum { NSApplicationPresentationDisableHideApplication = (1 << 8), NSApplicationPresentationDisableMenuBarTransparency = (1 << 9) }; +typedef NSUInteger NSApplicationPresentationOptions; #if defined( __LP64__) && !defined(__POWER__) /* Bug in the 10.5.sdk in 64bits */ extern OSErr UpdateSystemActivity(UInt8 activity); #define UsrActivity 1 #endif +/* the following is just to fix warnings, not for implementation! */ @interface NSMenu (IntroducedInSnowLeopard) - (void)removeAllItems; @end + +@interface NSApplication (IntroducedInSnowLeopard) +- (NSApplicationPresentationOptions)presentationOptions; +- (void)setPresentationOptions:(NSApplicationPresentationOptions)newOptions; +@end #endif #pragma mark - _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
