macosx: Remove private API for sort indicator images
[vlc.git] / modules / gui / macosx / CompatibilityFixes.h
blob7e91054cfd573e220543a209f5c9982fe5c4f2fd
1 /*****************************************************************************
2 * CompatibilityFixes.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2011-2018 VLC authors and VideoLAN
5 * $Id$
7 * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
8 * Marvin Scholz <epirat07 -at- gmail -dot- com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #import <Cocoa/Cocoa.h>
27 #pragma mark -
28 #pragma OS detection code
29 #define OSX_EL_CAPITAN_AND_HIGHER (NSAppKitVersionNumber >= 1404)
30 #define OSX_SIERRA_AND_HIGHER (NSAppKitVersionNumber >= 1485)
31 #define OSX_SIERRA_DOT_TWO_AND_HIGHER (NSAppKitVersionNumber >= 1504.76) // this is needed to check for MPRemoteCommandCenter
32 #define OSX_HIGH_SIERRA_AND_HIGHER (NSAppKitVersionNumber >= 1560)
33 #define OSX_MOJAVE_AND_HIGHER (NSAppKitVersionNumber >= 1639.10)
35 void swapoutOverride(Class _Nonnull cls, SEL _Nonnull selector);