zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

blob ed0bdfc9 (8325B) - Raw


      1 /*
      2  * Copyright (c) 2019 by Apple Inc.. All rights reserved.
      3  *
      4  * @APPLE_LICENSE_HEADER_START@
      5  * 
      6  * This file contains Original Code and/or Modifications of Original Code
      7  * as defined in and that are subject to the Apple Public Source License
      8  * Version 2.0 (the 'License'). You may not use this file except in
      9  * compliance with the License. Please obtain a copy of the License at
     10  * http://www.opensource.apple.com/apsl/ and read it before using this
     11  * file.
     12  * 
     13  * The Original Code and all software distributed under the License are
     14  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
     15  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
     16  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
     17  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
     18  * Please see the License for the specific language governing rights and
     19  * limitations under the License.
     20  * 
     21  * @APPLE_LICENSE_HEADER_END@
     22  */
     23  
     24 #ifndef __AVAILABILITY_VERSIONS__
     25 #define __AVAILABILITY_VERSIONS__
     26 
     27 #define __MAC_10_0            1000
     28 #define __MAC_10_1            1010
     29 #define __MAC_10_2            1020
     30 #define __MAC_10_3            1030
     31 #define __MAC_10_4            1040
     32 #define __MAC_10_5            1050
     33 #define __MAC_10_6            1060
     34 #define __MAC_10_7            1070
     35 #define __MAC_10_8            1080
     36 #define __MAC_10_9            1090
     37 #define __MAC_10_10         101000
     38 #define __MAC_10_10_2       101002
     39 #define __MAC_10_10_3       101003
     40 #define __MAC_10_11         101100
     41 #define __MAC_10_11_2       101102
     42 #define __MAC_10_11_3       101103
     43 #define __MAC_10_11_4       101104
     44 #define __MAC_10_12         101200
     45 #define __MAC_10_12_1       101201
     46 #define __MAC_10_12_2       101202
     47 #define __MAC_10_12_4       101204
     48 #define __MAC_10_13         101300
     49 #define __MAC_10_13_1       101301
     50 #define __MAC_10_13_2       101302
     51 #define __MAC_10_13_4       101304
     52 #define __MAC_10_14         101400
     53 #define __MAC_10_14_1       101401
     54 #define __MAC_10_14_4       101404
     55 #define __MAC_10_14_6       101406
     56 #define __MAC_10_15         101500
     57 #define __MAC_10_15_1       101501
     58 #define __MAC_10_15_4       101504
     59 #define __MAC_10_16         101600
     60 #define __MAC_11_0          110000
     61 #define __MAC_11_1          110100
     62 #define __MAC_11_3          110300
     63 #define __MAC_11_4          110400
     64 #define __MAC_11_5          110500
     65 #define __MAC_11_6          110600
     66 #define __MAC_12_0          120000
     67 #define __MAC_12_1          120100
     68 /* __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */
     69 
     70 #define __IPHONE_2_0      20000
     71 #define __IPHONE_2_1      20100
     72 #define __IPHONE_2_2      20200
     73 #define __IPHONE_3_0      30000
     74 #define __IPHONE_3_1      30100
     75 #define __IPHONE_3_2      30200
     76 #define __IPHONE_4_0      40000
     77 #define __IPHONE_4_1      40100
     78 #define __IPHONE_4_2      40200
     79 #define __IPHONE_4_3      40300
     80 #define __IPHONE_5_0      50000
     81 #define __IPHONE_5_1      50100
     82 #define __IPHONE_6_0      60000
     83 #define __IPHONE_6_1      60100
     84 #define __IPHONE_7_0      70000
     85 #define __IPHONE_7_1      70100
     86 #define __IPHONE_8_0      80000
     87 #define __IPHONE_8_1      80100
     88 #define __IPHONE_8_2      80200
     89 #define __IPHONE_8_3      80300
     90 #define __IPHONE_8_4      80400
     91 #define __IPHONE_9_0      90000
     92 #define __IPHONE_9_1      90100
     93 #define __IPHONE_9_2      90200
     94 #define __IPHONE_9_3      90300
     95 #define __IPHONE_10_0    100000
     96 #define __IPHONE_10_1    100100
     97 #define __IPHONE_10_2    100200
     98 #define __IPHONE_10_3    100300
     99 #define __IPHONE_11_0    110000
    100 #define __IPHONE_11_1    110100
    101 #define __IPHONE_11_2    110200
    102 #define __IPHONE_11_3    110300
    103 #define __IPHONE_11_4    110400
    104 #define __IPHONE_12_0    120000
    105 #define __IPHONE_12_1    120100
    106 #define __IPHONE_12_2    120200
    107 #define __IPHONE_12_3    120300
    108 #define __IPHONE_12_4    120400
    109 #define __IPHONE_13_0    130000
    110 #define __IPHONE_13_1    130100
    111 #define __IPHONE_13_2    130200
    112 #define __IPHONE_13_3    130300
    113 #define __IPHONE_13_4    130400
    114 #define __IPHONE_13_5    130500
    115 #define __IPHONE_13_6    130600
    116 #define __IPHONE_13_7    130700
    117 #define __IPHONE_14_0    140000
    118 #define __IPHONE_14_1    140100
    119 #define __IPHONE_14_2    140200
    120 #define __IPHONE_14_3    140300
    121 #define __IPHONE_14_5    140500
    122 #define __IPHONE_14_6    140600
    123 #define __IPHONE_14_7    140700
    124 #define __IPHONE_14_8    140800
    125 #define __IPHONE_15_0    150000
    126 #define __IPHONE_15_1    150100
    127 #define __IPHONE_15_2    150200
    128 /* __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */
    129 
    130 #define __TVOS_9_0        90000
    131 #define __TVOS_9_1        90100
    132 #define __TVOS_9_2        90200
    133 #define __TVOS_10_0      100000
    134 #define __TVOS_10_0_1    100001
    135 #define __TVOS_10_1      100100
    136 #define __TVOS_10_2      100200
    137 #define __TVOS_11_0      110000
    138 #define __TVOS_11_1      110100
    139 #define __TVOS_11_2      110200
    140 #define __TVOS_11_3      110300
    141 #define __TVOS_11_4      110400
    142 #define __TVOS_12_0      120000
    143 #define __TVOS_12_1      120100
    144 #define __TVOS_12_2      120200
    145 #define __TVOS_12_3      120300
    146 #define __TVOS_12_4      120400
    147 #define __TVOS_13_0      130000
    148 #define __TVOS_13_2      130200
    149 #define __TVOS_13_3      130300
    150 #define __TVOS_13_4      130400
    151 #define __TVOS_14_0      140000
    152 #define __TVOS_14_1      140100
    153 #define __TVOS_14_2      140200
    154 #define __TVOS_14_3      140300
    155 #define __TVOS_14_5      140500
    156 #define __TVOS_14_6      140600
    157 #define __TVOS_14_7      140700
    158 #define __TVOS_15_0      150000
    159 #define __TVOS_15_1      150100
    160 #define __TVOS_15_2      150200
    161 
    162 #define __WATCHOS_1_0     10000
    163 #define __WATCHOS_2_0     20000
    164 #define __WATCHOS_2_1     20100
    165 #define __WATCHOS_2_2     20200
    166 #define __WATCHOS_3_0     30000
    167 #define __WATCHOS_3_1     30100
    168 #define __WATCHOS_3_1_1   30101
    169 #define __WATCHOS_3_2     30200
    170 #define __WATCHOS_4_0     40000
    171 #define __WATCHOS_4_1     40100
    172 #define __WATCHOS_4_2     40200
    173 #define __WATCHOS_4_3     40300
    174 #define __WATCHOS_5_0     50000
    175 #define __WATCHOS_5_1     50100
    176 #define __WATCHOS_5_2     50200
    177 #define __WATCHOS_5_3     50300
    178 #define __WATCHOS_6_0     60000
    179 #define __WATCHOS_6_1     60100
    180 #define __WATCHOS_6_2     60200
    181 #define __WATCHOS_7_0     70000
    182 #define __WATCHOS_7_1     70100
    183 #define __WATCHOS_7_2     70200
    184 #define __WATCHOS_7_3     70300
    185 #define __WATCHOS_7_4     70400
    186 #define __WATCHOS_7_5     70500
    187 #define __WATCHOS_7_6     70600
    188 #define __WATCHOS_8_0     80000
    189 #define __WATCHOS_8_1     80100
    190 #define __WATCHOS_8_3     80300
    191 
    192 
    193 /*
    194  * Set up standard Mac OS X versions
    195  */
    196 
    197 #if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || defined(_DARWIN_C_SOURCE)
    198 
    199 #define MAC_OS_X_VERSION_10_0         1000
    200 #define MAC_OS_X_VERSION_10_1         1010
    201 #define MAC_OS_X_VERSION_10_2         1020
    202 #define MAC_OS_X_VERSION_10_3         1030
    203 #define MAC_OS_X_VERSION_10_4         1040
    204 #define MAC_OS_X_VERSION_10_5         1050
    205 #define MAC_OS_X_VERSION_10_6         1060
    206 #define MAC_OS_X_VERSION_10_7         1070
    207 #define MAC_OS_X_VERSION_10_8         1080
    208 #define MAC_OS_X_VERSION_10_9         1090
    209 #define MAC_OS_X_VERSION_10_10      101000
    210 #define MAC_OS_X_VERSION_10_10_2    101002
    211 #define MAC_OS_X_VERSION_10_10_3    101003
    212 #define MAC_OS_X_VERSION_10_11      101100
    213 #define MAC_OS_X_VERSION_10_11_2    101102
    214 #define MAC_OS_X_VERSION_10_11_3    101103
    215 #define MAC_OS_X_VERSION_10_11_4    101104
    216 #define MAC_OS_X_VERSION_10_12      101200
    217 #define MAC_OS_X_VERSION_10_12_1    101201
    218 #define MAC_OS_X_VERSION_10_12_2    101202
    219 #define MAC_OS_X_VERSION_10_12_4    101204
    220 #define MAC_OS_X_VERSION_10_13      101300
    221 #define MAC_OS_X_VERSION_10_13_1    101301
    222 #define MAC_OS_X_VERSION_10_13_2    101302
    223 #define MAC_OS_X_VERSION_10_13_4    101304
    224 #define MAC_OS_X_VERSION_10_14      101400
    225 #define MAC_OS_X_VERSION_10_14_1    101401
    226 #define MAC_OS_X_VERSION_10_14_4    101404
    227 #define MAC_OS_X_VERSION_10_14_6    101406
    228 #define MAC_OS_X_VERSION_10_15      101500
    229 #define MAC_OS_X_VERSION_10_15_1    101501
    230 #define MAC_OS_X_VERSION_10_16      101600
    231 #define MAC_OS_VERSION_11_0         110000
    232 #define MAC_OS_VERSION_12_0         120000
    233 
    234 #endif /* #if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || defined(_DARWIN_C_SOURCE) */
    235 
    236 #define __DRIVERKIT_19_0 190000
    237 #define __DRIVERKIT_20_0 200000
    238 #define __DRIVERKIT_21_0 210000
    239 
    240 #endif /* __AVAILABILITY_VERSIONS__ */