[vlc-commits] macosx: fixed compilation issue on Leopard

Felix Paul Kühne git at videolan.org
Sun Jan 8 01:22:55 CET 2012


vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | 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 <jb at videolan.org>

> 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
+
+ at interface NSApplication (IntroducedInSnowLeopard)
+- (NSApplicationPresentationOptions)presentationOptions;
+- (void)setPresentationOptions:(NSApplicationPresentationOptions)newOptions;
+ at end
 #endif
 
 #pragma mark -



More information about the vlc-commits mailing list