summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_compat.h
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-08-19 15:19:23 +0200
committerAkemi <der.richter@gmx.de>2017-08-26 11:42:50 +0200
commitd355cb618ce8586e75a87918a8b7d16b3a06edef (patch)
tree2768ccd4425a98c1ba417f93162824bf43a38e4d /osdep/macosx_compat.h
parenteacd97d536fc056eecb159949384841067c90594 (diff)
downloadmpv-d355cb618ce8586e75a87918a8b7d16b3a06edef.tar.bz2
mpv-d355cb618ce8586e75a87918a8b7d16b3a06edef.tar.xz
osx: fix build on macOS 10.11 and earlier
98f5579 added a safeguard for the deactivation of the automatic tab bar but it still needs a compile time guard. add a forward declaration for the setAllowsAutomaticWindowTabbing method of NSWindow. Fixes #4783
Diffstat (limited to 'osdep/macosx_compat.h')
-rw-r--r--osdep/macosx_compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/osdep/macosx_compat.h b/osdep/macosx_compat.h
index 2b75c7695e..0c2e87d14c 100644
--- a/osdep/macosx_compat.h
+++ b/osdep/macosx_compat.h
@@ -25,6 +25,11 @@
#include "osdep/macosx_versions.h"
#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12)
+
+@interface NSWindow (macOS10_12_SDK)
++ (void)setAllowsAutomaticWindowTabbing:(BOOL)allow;
+@end
+
typedef NSUInteger NSWindowStyleMask;
static const NSWindowStyleMask NSWindowStyleMaskClosable = NSClosableWindowMask;
static const NSWindowStyleMask NSWindowStyleMaskTitled = NSTitledWindowMask;