AvailabilityVersions.h (28765B) - 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_5 101405 56 #define __MAC_10_14_6 101406 57 #define __MAC_10_15 101500 58 #define __MAC_10_15_1 101501 59 #define __MAC_10_15_4 101504 60 #define __MAC_10_16 101600 61 #define __MAC_11_0 110000 62 #define __MAC_11_1 110100 63 #define __MAC_11_3 110300 64 #define __MAC_11_4 110400 65 #define __MAC_11_5 110500 66 #define __MAC_11_6 110600 67 #define __MAC_12_0 120000 68 #define __MAC_12_1 120100 69 #define __MAC_12_2 120200 70 #define __MAC_12_3 120300 71 #define __MAC_12_4 120400 72 #define __MAC_12_5 120500 73 #define __MAC_12_6 120600 74 #define __MAC_12_7 120700 75 #define __MAC_13_0 130000 76 #define __MAC_13_1 130100 77 #define __MAC_13_1 130100 78 #define __MAC_13_2 130200 79 #define __MAC_13_3 130300 80 #define __MAC_13_4 130400 81 #define __MAC_13_5 130500 82 #define __MAC_13_6 130600 83 #define __MAC_13_7 130700 84 #define __MAC_14_0 140000 85 #define __MAC_14_1 140100 86 #define __MAC_14_2 140200 87 #define __MAC_14_3 140300 88 #define __MAC_14_4 140400 89 #define __MAC_14_5 140500 90 #define __MAC_14_6 140600 91 #define __MAC_14_7 140700 92 #define __MAC_15_0 150000 93 #define __MAC_15_1 150100 94 #define __MAC_15_2 150200 95 #define __MAC_15_3 150300 96 #define __MAC_15_4 150400 97 #define __MAC_15_5 150500 98 /* __MAC__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ 99 100 #define __IPHONE_2_0 20000 101 #define __IPHONE_2_1 20100 102 #define __IPHONE_2_2 20200 103 #define __IPHONE_3_0 30000 104 #define __IPHONE_3_1 30100 105 #define __IPHONE_3_2 30200 106 #define __IPHONE_4_0 40000 107 #define __IPHONE_4_1 40100 108 #define __IPHONE_4_2 40200 109 #define __IPHONE_4_3 40300 110 #define __IPHONE_5_0 50000 111 #define __IPHONE_5_1 50100 112 #define __IPHONE_6_0 60000 113 #define __IPHONE_6_1 60100 114 #define __IPHONE_7_0 70000 115 #define __IPHONE_7_1 70100 116 #define __IPHONE_8_0 80000 117 #define __IPHONE_8_1 80100 118 #define __IPHONE_8_2 80200 119 #define __IPHONE_8_3 80300 120 #define __IPHONE_8_4 80400 121 #define __IPHONE_9_0 90000 122 #define __IPHONE_9_1 90100 123 #define __IPHONE_9_2 90200 124 #define __IPHONE_9_3 90300 125 #define __IPHONE_10_0 100000 126 #define __IPHONE_10_1 100100 127 #define __IPHONE_10_2 100200 128 #define __IPHONE_10_3 100300 129 #define __IPHONE_11_0 110000 130 #define __IPHONE_11_1 110100 131 #define __IPHONE_11_2 110200 132 #define __IPHONE_11_3 110300 133 #define __IPHONE_11_4 110400 134 #define __IPHONE_12_0 120000 135 #define __IPHONE_12_1 120100 136 #define __IPHONE_12_2 120200 137 #define __IPHONE_12_3 120300 138 #define __IPHONE_12_4 120400 139 #define __IPHONE_13_0 130000 140 #define __IPHONE_13_1 130100 141 #define __IPHONE_13_2 130200 142 #define __IPHONE_13_3 130300 143 #define __IPHONE_13_4 130400 144 #define __IPHONE_13_5 130500 145 #define __IPHONE_13_6 130600 146 #define __IPHONE_13_7 130700 147 #define __IPHONE_14_0 140000 148 #define __IPHONE_14_1 140100 149 #define __IPHONE_14_2 140200 150 #define __IPHONE_14_3 140300 151 #define __IPHONE_14_5 140500 152 #define __IPHONE_14_4 140400 153 #define __IPHONE_14_5 140500 154 #define __IPHONE_14_6 140600 155 #define __IPHONE_14_7 140700 156 #define __IPHONE_14_8 140800 157 #define __IPHONE_15_0 150000 158 #define __IPHONE_15_1 150100 159 #define __IPHONE_15_2 150200 160 #define __IPHONE_15_3 150300 161 #define __IPHONE_15_4 150400 162 #define __IPHONE_15_5 150500 163 #define __IPHONE_15_6 150600 164 #define __IPHONE_15_7 150700 165 #define __IPHONE_15_8 150800 166 #define __IPHONE_16_0 160000 167 #define __IPHONE_16_1 160100 168 #define __IPHONE_16_2 160200 169 #define __IPHONE_16_3 160300 170 #define __IPHONE_16_4 160400 171 #define __IPHONE_16_5 160500 172 #define __IPHONE_16_6 160600 173 #define __IPHONE_16_7 160700 174 #define __IPHONE_17_0 170000 175 #define __IPHONE_17_1 170100 176 #define __IPHONE_17_2 170200 177 #define __IPHONE_17_3 170300 178 #define __IPHONE_17_4 170400 179 #define __IPHONE_17_5 170500 180 #define __IPHONE_17_6 170600 181 #define __IPHONE_17_7 170700 182 #define __IPHONE_18_0 180000 183 #define __IPHONE_18_1 180100 184 #define __IPHONE_18_2 180200 185 #define __IPHONE_18_3 180300 186 #define __IPHONE_18_4 180400 187 #define __IPHONE_18_5 180500 188 /* __IPHONE__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ 189 190 #define __WATCHOS_1_0 10000 191 #define __WATCHOS_2_0 20000 192 #define __WATCHOS_2_1 20100 193 #define __WATCHOS_2_2 20200 194 #define __WATCHOS_3_0 30000 195 #define __WATCHOS_3_1 30100 196 #define __WATCHOS_3_1_1 30101 197 #define __WATCHOS_3_2 30200 198 #define __WATCHOS_4_0 40000 199 #define __WATCHOS_4_1 40100 200 #define __WATCHOS_4_2 40200 201 #define __WATCHOS_4_3 40300 202 #define __WATCHOS_5_0 50000 203 #define __WATCHOS_5_1 50100 204 #define __WATCHOS_5_2 50200 205 #define __WATCHOS_5_3 50300 206 #define __WATCHOS_6_0 60000 207 #define __WATCHOS_6_1 60100 208 #define __WATCHOS_6_2 60200 209 #define __WATCHOS_7_0 70000 210 #define __WATCHOS_7_1 70100 211 #define __WATCHOS_7_2 70200 212 #define __WATCHOS_7_3 70300 213 #define __WATCHOS_7_4 70400 214 #define __WATCHOS_7_5 70500 215 #define __WATCHOS_7_6 70600 216 #define __WATCHOS_8_0 80000 217 #define __WATCHOS_8_1 80100 218 #define __WATCHOS_8_3 80300 219 #define __WATCHOS_8_4 80400 220 #define __WATCHOS_8_5 80500 221 #define __WATCHOS_8_6 80600 222 #define __WATCHOS_8_7 80700 223 #define __WATCHOS_8_8 80800 224 #define __WATCHOS_9_0 90000 225 #define __WATCHOS_9_1 90100 226 #define __WATCHOS_9_2 90200 227 #define __WATCHOS_9_3 90300 228 #define __WATCHOS_9_4 90400 229 #define __WATCHOS_9_5 90500 230 #define __WATCHOS_9_6 90600 231 #define __WATCHOS_10_0 100000 232 #define __WATCHOS_10_1 100100 233 #define __WATCHOS_10_2 100200 234 #define __WATCHOS_10_3 100300 235 #define __WATCHOS_10_4 100400 236 #define __WATCHOS_10_5 100500 237 #define __WATCHOS_10_6 100600 238 #define __WATCHOS_10_7 100700 239 #define __WATCHOS_11_0 110000 240 #define __WATCHOS_11_1 110100 241 #define __WATCHOS_11_2 110200 242 #define __WATCHOS_11_3 110300 243 #define __WATCHOS_11_4 110400 244 #define __WATCHOS_11_5 110500 245 /* __WATCHOS__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ 246 247 #define __TVOS_9_0 90000 248 #define __TVOS_9_1 90100 249 #define __TVOS_9_2 90200 250 #define __TVOS_10_0 100000 251 #define __TVOS_10_0_1 100001 252 #define __TVOS_10_1 100100 253 #define __TVOS_10_2 100200 254 #define __TVOS_11_0 110000 255 #define __TVOS_11_1 110100 256 #define __TVOS_11_2 110200 257 #define __TVOS_11_3 110300 258 #define __TVOS_11_4 110400 259 #define __TVOS_12_0 120000 260 #define __TVOS_12_1 120100 261 #define __TVOS_12_2 120200 262 #define __TVOS_12_3 120300 263 #define __TVOS_12_4 120400 264 #define __TVOS_13_0 130000 265 #define __TVOS_13_2 130200 266 #define __TVOS_13_3 130300 267 #define __TVOS_13_4 130400 268 #define __TVOS_14_0 140000 269 #define __TVOS_14_1 140100 270 #define __TVOS_14_2 140200 271 #define __TVOS_14_3 140300 272 #define __TVOS_14_5 140500 273 #define __TVOS_14_6 140600 274 #define __TVOS_14_7 140700 275 #define __TVOS_15_0 150000 276 #define __TVOS_15_1 150100 277 #define __TVOS_15_2 150200 278 #define __TVOS_15_3 150300 279 #define __TVOS_15_4 150400 280 #define __TVOS_15_5 150500 281 #define __TVOS_15_6 150600 282 #define __TVOS_16_0 160000 283 #define __TVOS_16_1 160100 284 #define __TVOS_16_2 160200 285 #define __TVOS_16_3 160300 286 #define __TVOS_16_4 160400 287 #define __TVOS_16_5 160500 288 #define __TVOS_16_6 160600 289 #define __TVOS_17_0 170000 290 #define __TVOS_17_1 170100 291 #define __TVOS_17_2 170200 292 #define __TVOS_17_3 170300 293 #define __TVOS_17_4 170400 294 #define __TVOS_17_5 170500 295 #define __TVOS_17_6 170600 296 #define __TVOS_18_0 180000 297 #define __TVOS_18_1 180100 298 #define __TVOS_18_2 180200 299 #define __TVOS_18_3 180300 300 #define __TVOS_18_4 180400 301 #define __TVOS_18_5 180500 302 /* __TVOS__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ 303 304 #define __BRIDGEOS_2_0 20000 305 #define __BRIDGEOS_3_0 30000 306 #define __BRIDGEOS_3_1 30100 307 #define __BRIDGEOS_3_4 30400 308 #define __BRIDGEOS_4_0 40000 309 #define __BRIDGEOS_4_1 40100 310 #define __BRIDGEOS_5_0 50000 311 #define __BRIDGEOS_5_1 50100 312 #define __BRIDGEOS_5_3 50300 313 #define __BRIDGEOS_6_0 60000 314 #define __BRIDGEOS_6_2 60200 315 #define __BRIDGEOS_6_4 60400 316 #define __BRIDGEOS_6_5 60500 317 #define __BRIDGEOS_6_6 60600 318 #define __BRIDGEOS_7_0 70000 319 #define __BRIDGEOS_7_1 70100 320 #define __BRIDGEOS_7_1 70100 321 #define __BRIDGEOS_7_2 70200 322 #define __BRIDGEOS_7_3 70300 323 #define __BRIDGEOS_7_4 70400 324 #define __BRIDGEOS_7_6 70600 325 #define __BRIDGEOS_8_0 80000 326 #define __BRIDGEOS_8_1 80100 327 #define __BRIDGEOS_8_2 80200 328 #define __BRIDGEOS_8_3 80300 329 #define __BRIDGEOS_8_4 80400 330 #define __BRIDGEOS_8_5 80500 331 #define __BRIDGEOS_8_6 80600 332 #define __BRIDGEOS_9_0 90000 333 #define __BRIDGEOS_9_1 90100 334 #define __BRIDGEOS_9_2 90200 335 #define __BRIDGEOS_9_3 90300 336 #define __BRIDGEOS_9_4 90400 337 #define __BRIDGEOS_9_5 90500 338 339 340 #define __DRIVERKIT_19_0 190000 341 #define __DRIVERKIT_20_0 200000 342 #define __DRIVERKIT_21_0 210000 343 #define __DRIVERKIT_22_0 220000 344 #define __DRIVERKIT_22_4 220400 345 #define __DRIVERKIT_22_5 220500 346 #define __DRIVERKIT_22_6 220600 347 #define __DRIVERKIT_23_0 230000 348 #define __DRIVERKIT_23_1 230100 349 #define __DRIVERKIT_23_2 230200 350 #define __DRIVERKIT_23_3 230300 351 #define __DRIVERKIT_23_4 230400 352 #define __DRIVERKIT_23_5 230500 353 #define __DRIVERKIT_23_6 230600 354 #define __DRIVERKIT_24_0 240000 355 #define __DRIVERKIT_24_1 240100 356 #define __DRIVERKIT_24_2 240200 357 #define __DRIVERKIT_24_3 240300 358 #define __DRIVERKIT_24_4 240400 359 #define __DRIVERKIT_24_5 240500 360 /* __DRIVERKIT__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ 361 362 #define __VISIONOS_1_0 10000 363 #define __VISIONOS_1_1 10100 364 #define __VISIONOS_1_2 10200 365 #define __VISIONOS_1_3 10300 366 #define __VISIONOS_2_0 20000 367 #define __VISIONOS_2_1 20100 368 #define __VISIONOS_2_2 20200 369 #define __VISIONOS_2_3 20300 370 #define __VISIONOS_2_4 20400 371 #define __VISIONOS_2_5 20500 372 /* __VISIONOS__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ 373 374 375 376 /* __KERNELKIT__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ 377 378 379 #ifndef __OPEN_SOURCE__ 380 381 #endif /* __OPEN_SOURCE__ */ 382 383 /* 384 * Set up standard Mac OS X versions 385 */ 386 387 #if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || defined(_DARWIN_C_SOURCE) 388 389 #define MAC_OS_X_VERSION_10_0 __MAC_10_0 390 #define MAC_OS_X_VERSION_10_1 __MAC_10_1 391 #define MAC_OS_X_VERSION_10_2 __MAC_10_2 392 #define MAC_OS_X_VERSION_10_3 __MAC_10_3 393 #define MAC_OS_X_VERSION_10_4 __MAC_10_4 394 #define MAC_OS_X_VERSION_10_5 __MAC_10_5 395 #define MAC_OS_X_VERSION_10_6 __MAC_10_6 396 #define MAC_OS_X_VERSION_10_7 __MAC_10_7 397 #define MAC_OS_X_VERSION_10_8 __MAC_10_8 398 #define MAC_OS_X_VERSION_10_9 __MAC_10_9 399 #define MAC_OS_X_VERSION_10_10 __MAC_10_10 400 #define MAC_OS_X_VERSION_10_10_2 __MAC_10_10_2 401 #define MAC_OS_X_VERSION_10_10_3 __MAC_10_10_3 402 #define MAC_OS_X_VERSION_10_11 __MAC_10_11 403 #define MAC_OS_X_VERSION_10_11_2 __MAC_10_11_2 404 #define MAC_OS_X_VERSION_10_11_3 __MAC_10_11_3 405 #define MAC_OS_X_VERSION_10_11_4 __MAC_10_11_4 406 #define MAC_OS_X_VERSION_10_12 __MAC_10_12 407 #define MAC_OS_X_VERSION_10_12_1 __MAC_10_12_1 408 #define MAC_OS_X_VERSION_10_12_2 __MAC_10_12_2 409 #define MAC_OS_X_VERSION_10_12_4 __MAC_10_12_4 410 #define MAC_OS_X_VERSION_10_13 __MAC_10_13 411 #define MAC_OS_X_VERSION_10_13_1 __MAC_10_13_1 412 #define MAC_OS_X_VERSION_10_13_2 __MAC_10_13_2 413 #define MAC_OS_X_VERSION_10_13_4 __MAC_10_13_4 414 #define MAC_OS_X_VERSION_10_14 __MAC_10_14 415 #define MAC_OS_X_VERSION_10_14_1 __MAC_10_14_1 416 #define MAC_OS_X_VERSION_10_14_4 __MAC_10_14_4 417 #define MAC_OS_X_VERSION_10_14_5 __MAC_10_14_5 418 #define MAC_OS_X_VERSION_10_14_6 __MAC_10_14_6 419 #define MAC_OS_X_VERSION_10_15 __MAC_10_15 420 #define MAC_OS_X_VERSION_10_15_1 __MAC_10_15_1 421 #define MAC_OS_X_VERSION_10_15_4 __MAC_10_15_4 422 #define MAC_OS_X_VERSION_10_16 __MAC_10_16 423 #define MAC_OS_VERSION_11_0 __MAC_11_0 424 #define MAC_OS_VERSION_11_1 __MAC_11_1 425 #define MAC_OS_VERSION_11_3 __MAC_11_3 426 #define MAC_OS_VERSION_11_4 __MAC_11_4 427 #define MAC_OS_VERSION_11_5 __MAC_11_5 428 #define MAC_OS_VERSION_11_6 __MAC_11_6 429 #define MAC_OS_VERSION_12_0 __MAC_12_0 430 #define MAC_OS_VERSION_12_1 __MAC_12_1 431 #define MAC_OS_VERSION_12_2 __MAC_12_2 432 #define MAC_OS_VERSION_12_3 __MAC_12_3 433 #define MAC_OS_VERSION_12_4 __MAC_12_4 434 #define MAC_OS_VERSION_12_5 __MAC_12_5 435 #define MAC_OS_VERSION_12_6 __MAC_12_6 436 #define MAC_OS_VERSION_12_7 __MAC_12_7 437 #define MAC_OS_VERSION_13_0 __MAC_13_0 438 #define MAC_OS_VERSION_13_1 __MAC_13_1 439 #define MAC_OS_VERSION_13_1 __MAC_13_1 440 #define MAC_OS_VERSION_13_2 __MAC_13_2 441 #define MAC_OS_VERSION_13_3 __MAC_13_3 442 #define MAC_OS_VERSION_13_4 __MAC_13_4 443 #define MAC_OS_VERSION_13_5 __MAC_13_5 444 #define MAC_OS_VERSION_13_6 __MAC_13_6 445 #define MAC_OS_VERSION_13_7 __MAC_13_7 446 #define MAC_OS_VERSION_14_0 __MAC_14_0 447 #define MAC_OS_VERSION_14_1 __MAC_14_1 448 #define MAC_OS_VERSION_14_2 __MAC_14_2 449 #define MAC_OS_VERSION_14_3 __MAC_14_3 450 #define MAC_OS_VERSION_14_4 __MAC_14_4 451 #define MAC_OS_VERSION_14_5 __MAC_14_5 452 #define MAC_OS_VERSION_14_6 __MAC_14_6 453 #define MAC_OS_VERSION_14_7 __MAC_14_7 454 #define MAC_OS_VERSION_15_0 __MAC_15_0 455 #define MAC_OS_VERSION_15_1 __MAC_15_1 456 #define MAC_OS_VERSION_15_2 __MAC_15_2 457 #define MAC_OS_VERSION_15_3 __MAC_15_3 458 #define MAC_OS_VERSION_15_4 __MAC_15_4 459 #define MAC_OS_VERSION_15_5 __MAC_15_5 460 461 #endif /* #if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || defined(_DARWIN_C_SOURCE) */ 462 463 #endif /* __AVAILABILITY_VERSIONS__ */ 464 465 #ifndef __OPEN_SOURCE__ 466 // This is explicitly outside the header guard 467 #ifndef __AVAILABILITY_VERSIONS_VERSION_HASH 468 #define __AVAILABILITY_VERSIONS_VERSION_HASH 93585900U 469 #define __AVAILABILITY_VERSIONS_VERSION_STRING "Local" 470 #define __AVAILABILITY_FILE "AvailabilityVersions.h" 471 #elif __AVAILABILITY_VERSIONS_VERSION_HASH != 93585900U 472 #pragma GCC error "Already found AvailabilityVersions version " __AVAILABILITY_FILE " from " __AVAILABILITY_VERSIONS_VERSION_STRING ", which is incompatible with AvailabilityVersions.h from Local. Mixing and matching Availability from different SDKs is not supported" 473 #endif /* __AVAILABILITY_VERSIONS_VERSION_HASH */ 474 #endif /* __OPEN_SOURCE__ */