Commit 095642c6 authored by Marvin Scholz's avatar Marvin Scholz

macOS: Add compatibility typedef for NSWindowStyleMask

NSWindowStyleMask was introduced in 10.12 SDK, and used for methods like
`initWithContentRect:styleMask:` which before 10.12 used NSUInteger.
Continuing to use NSUInteger works but causes a warning when compiling
with 10.12 SDK.
parent 17cf9642
......@@ -51,4 +51,6 @@ typedef NS_OPTIONS(NSUInteger, NSStatusItemBehavior) {
@end
typedef NSUInteger NSWindowStyleMask;
#endif
......@@ -46,7 +46,7 @@
@implementation VLCWindow
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)styleMask
backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{
self = [super initWithContentRect:contentRect styleMask:styleMask backing:backingType defer:flag];
......@@ -229,7 +229,7 @@
#pragma mark -
#pragma mark Init
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)styleMask
backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{
_darkInterface = config_GetInt(getIntf(), "macosx-interfacestyle");
......
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