MeVisLab Toolbox Reference
macVersionMacros.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2014, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef MAC_VERSION_MACROS_H
14 #define MAC_VERSION_MACROS_H
15 
17 
18 #if defined(__APPLE__)
19 
20 #include <Availability.h>
21 
22 // Set up standard macOS versions
23 #define __MAC_10_8 1080
24 #define __MAC_10_9 1090
25 #define __MAC_10_10 101000
26 #define __MAC_10_11 101100
27 #define __MAC_10_12 101200
28 #define __MAC_10_13 101300
29 #define __MAC_10_14 101400
30 #define __MAC_10_15 101500
31 
32 // Provide the older-style macros for legacy code as well
33 #define MAC_OS_X_VERSION_10_8 1080
34 #define MAC_OS_X_VERSION_10_9 1090
35 #define MAC_OS_X_VERSION_10_10 101000
36 #define MAC_OS_X_VERSION_10_11 101100
37 #define MAC_OS_X_VERSION_10_12 101200
38 #define MAC_OS_X_VERSION_10_13 101300
39 #define MAC_OS_X_VERSION_10_14 101400
40 #define MAC_OS_X_VERSION_10_15 101500
41 
42 
43 #if __MAC_OS_X_VERSION_MAX_ALLOWED < __MAC_10_14
44 static const double NSAppKitVersionNumber10_13 = 1561;
45 #endif
46 
47 #if __MAC_OS_X_VERSION_MAX_ALLOWED < __MAC_10_15
48 static const double NSAppKitVersionNumber10_14 = 1671;
49 #endif
50 
51 #if !defined(NSFoundationVersionNumber10_14)
52 #define NSFoundationVersionNumber10_14 1555.1
53 #endif
54 
55 #endif // __APPLE__
56 #endif // __macVersionMacros_H
static const double NSAppKitVersionNumber10_14
static const double NSAppKitVersionNumber10_13