File: /usr/include/sys/_symbol_aliasing.h

Green shading in the line number column means the source is part of the translation unit, red means it is conditionally excluded. Highlighted line numbers link to the translation unit page. Highlighted macros link to the macro page.

       1: /* Copyright (c) 2010 Apple Inc. All rights reserved.
       2:  * 
       3:  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
       4:  * 
       5:  * This file contains Original Code and/or Modifications of Original Code
       6:  * as defined in and that are subject to the Apple Public Source License
       7:  * Version 2.0 (the 'License'). You may not use this file except in
       8:  * compliance with the License. The rights granted to you under the License
       9:  * may not be used to create, or enable the creation or redistribution of,
      10:  * unlawful or unlicensed copies of an Apple operating system, or to
      11:  * circumvent, violate, or enable the circumvention or violation of, any
      12:  * terms of an Apple operating system software license agreement.
      13:  * 
      14:  * Please obtain a copy of the License at
      15:  * http://www.opensource.apple.com/apsl/ and read it before using this file.
      16:  * 
      17:  * The Original Code and all software distributed under the License are
      18:  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
      19:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
      20:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
      21:  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
      22:  * Please see the License for the specific language governing rights and
      23:  * limitations under the License.
      24:  * 
      25:  * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
      26:  */
      27: 
      28: #ifndef _CDEFS_H_
      29: # error "Never use <sys/_symbol_aliasing.h> directly.  Use <sys/cdefs.h> instead."
      30: #endif
      31: 
      32: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 20000
      33: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_0(x) x
      34: #else
      35: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_0(x)
      36: #endif
      37: 
      38: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 20100
      39: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_1(x) x
      40: #else
      41: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_1(x)
      42: #endif
      43: 
      44: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 20200
      45: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_2(x) x
      46: #else
      47: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_2(x)
      48: #endif
      49: 
      50: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 30000
      51: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_0(x) x
      52: #else
      53: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_0(x)
      54: #endif
      55: 
      56: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 30100
      57: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_1(x) x
      58: #else
      59: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_1(x)
      60: #endif
      61: 
      62: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 30200
      63: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_2(x) x
      64: #else
      65: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_2(x)
      66: #endif
      67: 
      68: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 40000
      69: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_0(x) x
      70: #else
      71: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_0(x)
      72: #endif
      73: 
      74: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 40100
      75: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_1(x) x
      76: #else
      77: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_1(x)
      78: #endif
      79: 
      80: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 40200
      81: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_2(x) x
      82: #else
      83: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_2(x)
      84: #endif
      85: 
      86: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 40300
      87: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_3(x) x
      88: #else
      89: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_3(x)
      90: #endif
      91: 
      92: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 50000
      93: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_5_0(x) x
      94: #else
      95: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_5_0(x)
      96: #endif
      97: 
      98: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 50100
      99: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_5_1(x) x
     100: #else
     101: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_5_1(x)
     102: #endif
     103: 
     104: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 60000
     105: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_6_0(x) x
     106: #else
     107: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_6_0(x)
     108: #endif
     109: 
     110: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 60100
     111: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_6_1(x) x
     112: #else
     113: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_6_1(x)
     114: #endif
     115: 
     116: #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 70000
     117: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_7_0(x) x
     118: #else
     119: #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_7_0(x)
     120: #endif
     121: 
     122: #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1000
     123: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_0(x) x
     124: #else
     125: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_0(x)
     126: #endif
     127: 
     128: #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1010
     129: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_1(x) x
     130: #else
     131: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_1(x)
     132: #endif
     133: 
     134: #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1020
     135: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_2(x) x
     136: #else
     137: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_2(x)
     138: #endif
     139: 
     140: #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1030
     141: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_3(x) x
     142: #else
     143: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_3(x)
     144: #endif
     145: 
     146: #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1040
     147: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_4(x) x
     148: #else
     149: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_4(x)
     150: #endif
     151: 
     152: #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
     153: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_5(x) x
     154: #else
     155: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_5(x)
     156: #endif
     157: 
     158: #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060
     159: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_6(x) x
     160: #else
     161: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_6(x)
     162: #endif
     163: 
     164: #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1070
     165: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_7(x) x
     166: #else
     167: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_7(x)
     168: #endif
     169: 
     170: #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1080
     171: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_8(x) x
     172: #else
     173: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_8(x)
     174: #endif
     175: 
     176: #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1090
     177: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_9(x) x
     178: #else
     179: #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_9(x)
     180: #endif
     181: 
     182: