3 * This code was taken directly from:
4 * https://forum.qt.io/topic/82609/remove-native-mac-menu-items-such-as-show-tab-bar
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #ifndef MACOS_COMPAT_H
14 #define MACOS_COMPAT_H
16 #import <Cocoa/Cocoa.h>
18 #if !defined(MAC_OS_X_VERSION_10_9)
19 # define MAC_OS_X_VERSION_10_9 1090
22 #if !defined(MAC_OS_X_VERSION_10_10)
23 # define MAC_OS_X_VERSION_10_10 101000
26 #if !defined(MAC_OS_X_VERSION_10_12)
27 # define MAC_OS_X_VERSION_10_12 101200
30 #if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12)
31 @interface
NSWindow (macOS10_12_SDK
)
32 + (void)setAllowsAutomaticWindowTabbing
:(BOOL
)allow
;
36 #endif // MACOS_COMPAT_H