Commit f209b254 authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Jean-Baptiste Kempf

macosx: fixed compilation issue on Leopard

(cherry picked from commit 4665c50e94985e35eec8d3f2171812440a17d806)
(cherry picked from commit c4808dbd84321a9447c4bc2d3c761586a3317e47)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7e21fe9a
/*****************************************************************************
* 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 -
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment