]>
Commit | Line | Data |
---|---|---|
6d2010ae A |
1 | /* |
2 | * Copyright (c) 2001-2010 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 | /* | |
25 | File: AvailabilityMacros.h | |
26 | ||
27 | More Info: See TechNote 2064 | |
28 | ||
29 | Contains: Autoconfiguration of AVAILABLE_ macros for Mac OS X | |
30 | ||
31 | This header enables a developer to specify build time | |
32 | constraints on what Mac OS X versions the resulting | |
33 | application will be run. There are two bounds a developer | |
34 | can specify: | |
35 | ||
36 | MAC_OS_X_VERSION_MIN_REQUIRED | |
37 | MAC_OS_X_VERSION_MAX_ALLOWED | |
38 | ||
39 | The lower bound controls which calls to OS functions will | |
40 | be weak-importing (allowed to be unresolved at launch time). | |
41 | The upper bound controls which OS functionality, if used, | |
42 | will result in a compiler error because that functionality is | |
43 | not available on on any OS is the specifed range. | |
44 | ||
45 | For example, suppose an application is compiled with: | |
46 | ||
47 | MAC_OS_X_VERSION_MIN_REQUIRED = MAC_OS_X_VERSION_10_2 | |
48 | MAC_OS_X_VERSION_MAX_ALLOWED = MAC_OS_X_VERSION_10_3 | |
49 | ||
50 | and an OS header contains: | |
51 | ||
52 | extern void funcA(void) AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER; | |
53 | extern void funcB(void) AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_2; | |
54 | extern void funcC(void) AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3; | |
55 | extern void funcD(void) AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER; | |
56 | extern void funcE(void) AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER; | |
57 | extern void funcF(void) AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER; | |
58 | extern void funcG(void) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | |
59 | ||
60 | typedef long TypeA DEPRECATED_IN_MAC_OS_X_VERSION_10_0_AND_LATER; | |
61 | typedef long TypeB DEPRECATED_IN_MAC_OS_X_VERSION_10_1_AND_LATER; | |
62 | typedef long TypeC DEPRECATED_IN_MAC_OS_X_VERSION_10_2_AND_LATER; | |
63 | typedef long TypeD DEPRECATED_IN_MAC_OS_X_VERSION_10_3_AND_LATER; | |
64 | typedef long TypeE DEPRECATED_IN_MAC_OS_X_VERSION_10_4_AND_LATER; | |
65 | ||
66 | Any application code which uses these declarations will get the following: | |
67 | ||
68 | compile link run | |
69 | ------- ------ ------- | |
70 | funcA: normal normal normal | |
71 | funcB: warning normal normal | |
72 | funcC: normal normal normal | |
73 | funcD: normal normal normal | |
74 | funcE: normal normal normal | |
75 | funcF: normal weak on 10.3 normal, on 10.2 (&funcF == NULL) | |
76 | funcG: error error n/a | |
77 | typeA: warning | |
78 | typeB: warning | |
79 | typeC: warning | |
80 | typeD: normal | |
81 | typeE: normal | |
82 | ||
83 | ||
84 | */ | |
85 | #ifndef __AVAILABILITYMACROS__ | |
86 | #define __AVAILABILITYMACROS__ | |
87 | ||
88 | ||
89 | /* | |
90 | * Set up standard Mac OS X versions | |
91 | */ | |
92 | #define MAC_OS_X_VERSION_10_0 1000 | |
93 | #define MAC_OS_X_VERSION_10_1 1010 | |
94 | #define MAC_OS_X_VERSION_10_2 1020 | |
95 | #define MAC_OS_X_VERSION_10_3 1030 | |
96 | #define MAC_OS_X_VERSION_10_4 1040 | |
97 | #define MAC_OS_X_VERSION_10_5 1050 | |
98 | #define MAC_OS_X_VERSION_10_6 1060 | |
99 | #define MAC_OS_X_VERSION_10_7 1070 | |
100 | ||
101 | ||
102 | /* | |
103 | * If min OS not specified, assume 10.1 for ppc and 10.4 for all others | |
104 | * Note: gcc driver may set _ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED_ based on MACOSX_DEPLOYMENT_TARGET environment variable | |
105 | */ | |
106 | #ifndef MAC_OS_X_VERSION_MIN_REQUIRED | |
107 | #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ | |
108 | #if (__i386__ || __x86_64__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < MAC_OS_X_VERSION_10_4) | |
109 | #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid. | |
110 | #elif __ppc64__ && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < MAC_OS_X_VERSION_10_4) | |
111 | #warning Building for ppc64 with Mac OS X Deployment Target < 10.4 is invalid. | |
112 | #endif | |
113 | #define MAC_OS_X_VERSION_MIN_REQUIRED __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ | |
114 | #else | |
115 | #if __ppc64__ || __i386__ || __x86_64__ | |
116 | #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_4 | |
117 | #else | |
118 | #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_1 | |
119 | #endif | |
120 | #endif | |
121 | #endif | |
122 | ||
123 | /* | |
124 | * if max OS not specified, assume largerof(10.6, min) | |
125 | */ | |
126 | #ifndef MAC_OS_X_VERSION_MAX_ALLOWED | |
127 | #if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_7 | |
128 | #define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_MIN_REQUIRED | |
129 | #else | |
130 | #define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_7 | |
131 | #endif | |
132 | #endif | |
133 | ||
134 | /* | |
135 | * Error on bad values | |
136 | */ | |
137 | #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_MIN_REQUIRED | |
138 | #error MAC_OS_X_VERSION_MAX_ALLOWED must be >= MAC_OS_X_VERSION_MIN_REQUIRED | |
139 | #endif | |
140 | #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_0 | |
141 | #error MAC_OS_X_VERSION_MIN_REQUIRED must be >= MAC_OS_X_VERSION_10_0 | |
142 | #endif | |
143 | ||
144 | /* | |
145 | * only certain compilers support __attribute__((weak_import)) | |
146 | */ | |
147 | #if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1))) && (MAC_OS_X_VERSION_MIN_REQUIRED >= 1020) | |
148 | #define WEAK_IMPORT_ATTRIBUTE __attribute__((weak_import)) | |
149 | #elif defined(__MWERKS__) && (__MWERKS__ >= 0x3205) && (MAC_OS_X_VERSION_MIN_REQUIRED >= 1020) && !defined(__INTEL__) | |
150 | #define WEAK_IMPORT_ATTRIBUTE __attribute__((weak_import)) | |
151 | #else | |
152 | #define WEAK_IMPORT_ATTRIBUTE | |
153 | #endif | |
154 | ||
155 | /* | |
156 | * only certain compilers support __attribute__((deprecated)) | |
157 | */ | |
158 | #if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1))) | |
159 | #define DEPRECATED_ATTRIBUTE __attribute__((deprecated)) | |
160 | #else | |
161 | #define DEPRECATED_ATTRIBUTE | |
162 | #endif | |
163 | ||
164 | /* | |
165 | * only certain compilers support __attribute__((unavailable)) | |
166 | */ | |
167 | #if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1))) | |
168 | #define UNAVAILABLE_ATTRIBUTE __attribute__((unavailable)) | |
169 | #else | |
170 | #define UNAVAILABLE_ATTRIBUTE | |
171 | #endif | |
172 | ||
173 | ||
174 | ||
175 | /* | |
176 | * AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER | |
177 | * | |
178 | * Used on functions introduced in Mac OS X 10.0 | |
179 | */ | |
180 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER | |
181 | ||
182 | /* | |
183 | * AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED | |
184 | * | |
185 | * Used on functions introduced in Mac OS X 10.0, | |
186 | * and deprecated in Mac OS X 10.0 | |
187 | */ | |
188 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE | |
189 | ||
190 | /* | |
191 | * DEPRECATED_IN_MAC_OS_X_VERSION_10_0_AND_LATER | |
192 | * | |
193 | * Used on types deprecated in Mac OS X 10.0 | |
194 | */ | |
195 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_0_AND_LATER DEPRECATED_ATTRIBUTE | |
196 | ||
197 | ||
198 | ||
199 | ||
200 | ||
201 | ||
202 | /* | |
203 | * AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER | |
204 | * | |
205 | * Used on declarations introduced in Mac OS X 10.1 | |
206 | */ | |
207 | #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_1 | |
208 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER UNAVAILABLE_ATTRIBUTE | |
209 | #elif MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_1 | |
210 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER WEAK_IMPORT_ATTRIBUTE | |
211 | #else | |
212 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER | |
213 | #endif | |
214 | ||
215 | /* | |
216 | * AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED | |
217 | * | |
218 | * Used on declarations introduced in Mac OS X 10.1, | |
219 | * and deprecated in Mac OS X 10.1 | |
220 | */ | |
221 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_1 | |
222 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE | |
223 | #else | |
224 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER | |
225 | #endif | |
226 | ||
227 | /* | |
228 | * AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_1 | |
229 | * | |
230 | * Used on declarations introduced in Mac OS X 10.0, | |
231 | * but later deprecated in Mac OS X 10.1 | |
232 | */ | |
233 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_1 | |
234 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_1 DEPRECATED_ATTRIBUTE | |
235 | #else | |
236 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_1 AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER | |
237 | #endif | |
238 | ||
239 | /* | |
240 | * DEPRECATED_IN_MAC_OS_X_VERSION_10_1_AND_LATER | |
241 | * | |
242 | * Used on types deprecated in Mac OS X 10.1 | |
243 | */ | |
244 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_1 | |
245 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_1_AND_LATER DEPRECATED_ATTRIBUTE | |
246 | #else | |
247 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_1_AND_LATER | |
248 | #endif | |
249 | ||
250 | ||
251 | ||
252 | ||
253 | ||
254 | ||
255 | ||
256 | /* | |
257 | * AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER | |
258 | * | |
259 | * Used on declarations introduced in Mac OS X 10.2 | |
260 | */ | |
261 | #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_2 | |
262 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER UNAVAILABLE_ATTRIBUTE | |
263 | #elif MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_2 | |
264 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER WEAK_IMPORT_ATTRIBUTE | |
265 | #else | |
266 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER | |
267 | #endif | |
268 | ||
269 | /* | |
270 | * AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED | |
271 | * | |
272 | * Used on declarations introduced in Mac OS X 10.2, | |
273 | * and deprecated in Mac OS X 10.2 | |
274 | */ | |
275 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_2 | |
276 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE | |
277 | #else | |
278 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER | |
279 | #endif | |
280 | ||
281 | /* | |
282 | * AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_2 | |
283 | * | |
284 | * Used on declarations introduced in Mac OS X 10.0, | |
285 | * but later deprecated in Mac OS X 10.2 | |
286 | */ | |
287 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_2 | |
288 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_2 DEPRECATED_ATTRIBUTE | |
289 | #else | |
290 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_2 AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER | |
291 | #endif | |
292 | ||
293 | /* | |
294 | * AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_2 | |
295 | * | |
296 | * Used on declarations introduced in Mac OS X 10.1, | |
297 | * but later deprecated in Mac OS X 10.2 | |
298 | */ | |
299 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_2 | |
300 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_2 DEPRECATED_ATTRIBUTE | |
301 | #else | |
302 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_2 AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER | |
303 | #endif | |
304 | ||
305 | /* | |
306 | * DEPRECATED_IN_MAC_OS_X_VERSION_10_2_AND_LATER | |
307 | * | |
308 | * Used on types deprecated in Mac OS X 10.2 | |
309 | */ | |
310 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_2 | |
311 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_2_AND_LATER DEPRECATED_ATTRIBUTE | |
312 | #else | |
313 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_2_AND_LATER | |
314 | #endif | |
315 | ||
316 | ||
317 | ||
318 | ||
319 | ||
320 | /* | |
321 | * AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER | |
322 | * | |
323 | * Used on declarations introduced in Mac OS X 10.3 | |
324 | */ | |
325 | #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3 | |
326 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER UNAVAILABLE_ATTRIBUTE | |
327 | #elif MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_3 | |
328 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER WEAK_IMPORT_ATTRIBUTE | |
329 | #else | |
330 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER | |
331 | #endif | |
332 | ||
333 | /* | |
334 | * AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED | |
335 | * | |
336 | * Used on declarations introduced in Mac OS X 10.3, | |
337 | * and deprecated in Mac OS X 10.3 | |
338 | */ | |
339 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_3 | |
340 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE | |
341 | #else | |
342 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER | |
343 | #endif | |
344 | ||
345 | /* | |
346 | * AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3 | |
347 | * | |
348 | * Used on declarations introduced in Mac OS X 10.0, | |
349 | * but later deprecated in Mac OS X 10.3 | |
350 | */ | |
351 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_3 | |
352 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3 DEPRECATED_ATTRIBUTE | |
353 | #else | |
354 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3 AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER | |
355 | #endif | |
356 | ||
357 | /* | |
358 | * AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3 | |
359 | * | |
360 | * Used on declarations introduced in Mac OS X 10.1, | |
361 | * but later deprecated in Mac OS X 10.3 | |
362 | */ | |
363 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_3 | |
364 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3 DEPRECATED_ATTRIBUTE | |
365 | #else | |
366 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3 AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER | |
367 | #endif | |
368 | ||
369 | /* | |
370 | * AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3 | |
371 | * | |
372 | * Used on declarations introduced in Mac OS X 10.2, | |
373 | * but later deprecated in Mac OS X 10.3 | |
374 | */ | |
375 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_3 | |
376 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3 DEPRECATED_ATTRIBUTE | |
377 | #else | |
378 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_3 AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER | |
379 | #endif | |
380 | ||
381 | /* | |
382 | * DEPRECATED_IN_MAC_OS_X_VERSION_10_3_AND_LATER | |
383 | * | |
384 | * Used on types deprecated in Mac OS X 10.3 | |
385 | */ | |
386 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_3 | |
387 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_3_AND_LATER DEPRECATED_ATTRIBUTE | |
388 | #else | |
389 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_3_AND_LATER | |
390 | #endif | |
391 | ||
392 | ||
393 | ||
394 | ||
395 | ||
396 | ||
397 | /* | |
398 | * AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER | |
399 | * | |
400 | * Used on declarations introduced in Mac OS X 10.4 | |
401 | */ | |
402 | #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4 | |
403 | #define AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER UNAVAILABLE_ATTRIBUTE | |
404 | #elif MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4 | |
405 | #define AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER WEAK_IMPORT_ATTRIBUTE | |
406 | #else | |
407 | #define AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER | |
408 | #endif | |
409 | ||
410 | /* | |
411 | * AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED | |
412 | * | |
413 | * Used on declarations introduced in Mac OS X 10.4, | |
414 | * and deprecated in Mac OS X 10.4 | |
415 | */ | |
416 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4 | |
417 | #define AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE | |
418 | #else | |
419 | #define AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER | |
420 | #endif | |
421 | ||
422 | /* | |
423 | * AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 | |
424 | * | |
425 | * Used on declarations introduced in Mac OS X 10.0, | |
426 | * but later deprecated in Mac OS X 10.4 | |
427 | */ | |
428 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4 | |
429 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 DEPRECATED_ATTRIBUTE | |
430 | #else | |
431 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER | |
432 | #endif | |
433 | ||
434 | /* | |
435 | * AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 | |
436 | * | |
437 | * Used on declarations introduced in Mac OS X 10.1, | |
438 | * but later deprecated in Mac OS X 10.4 | |
439 | */ | |
440 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4 | |
441 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 DEPRECATED_ATTRIBUTE | |
442 | #else | |
443 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER | |
444 | #endif | |
445 | ||
446 | /* | |
447 | * AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 | |
448 | * | |
449 | * Used on declarations introduced in Mac OS X 10.2, | |
450 | * but later deprecated in Mac OS X 10.4 | |
451 | */ | |
452 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4 | |
453 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 DEPRECATED_ATTRIBUTE | |
454 | #else | |
455 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER | |
456 | #endif | |
457 | ||
458 | /* | |
459 | * AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 | |
460 | * | |
461 | * Used on declarations introduced in Mac OS X 10.3, | |
462 | * but later deprecated in Mac OS X 10.4 | |
463 | */ | |
464 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4 | |
465 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 DEPRECATED_ATTRIBUTE | |
466 | #else | |
467 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER | |
468 | #endif | |
469 | ||
470 | /* | |
471 | * DEPRECATED_IN_MAC_OS_X_VERSION_10_4_AND_LATER | |
472 | * | |
473 | * Used on types deprecated in Mac OS X 10.4 | |
474 | */ | |
475 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4 | |
476 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_4_AND_LATER DEPRECATED_ATTRIBUTE | |
477 | #else | |
478 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_4_AND_LATER | |
479 | #endif | |
480 | ||
481 | ||
482 | ||
483 | ||
484 | ||
485 | /* | |
486 | * AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER | |
487 | * | |
488 | * Used on declarations introduced in Mac OS X 10.5 | |
489 | */ | |
490 | #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5 | |
491 | #define AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER UNAVAILABLE_ATTRIBUTE | |
492 | #elif MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 | |
493 | #define AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER WEAK_IMPORT_ATTRIBUTE | |
494 | #else | |
495 | #define AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER | |
496 | #endif | |
497 | ||
498 | /* | |
499 | * AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER_BUT_DEPRECATED | |
500 | * | |
501 | * Used on declarations introduced in Mac OS X 10.5, | |
502 | * and deprecated in Mac OS X 10.5 | |
503 | */ | |
504 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 | |
505 | #define AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE | |
506 | #else | |
507 | #define AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER_BUT_DEPRECATED AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER | |
508 | #endif | |
509 | ||
510 | /* | |
511 | * AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 | |
512 | * | |
513 | * Used on declarations introduced in Mac OS X 10.0, | |
514 | * but later deprecated in Mac OS X 10.5 | |
515 | */ | |
516 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 | |
517 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 DEPRECATED_ATTRIBUTE | |
518 | #else | |
519 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER | |
520 | #endif | |
521 | ||
522 | /* | |
523 | * AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 | |
524 | * | |
525 | * Used on declarations introduced in Mac OS X 10.1, | |
526 | * but later deprecated in Mac OS X 10.5 | |
527 | */ | |
528 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 | |
529 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 DEPRECATED_ATTRIBUTE | |
530 | #else | |
531 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER | |
532 | #endif | |
533 | ||
534 | /* | |
535 | * AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 | |
536 | * | |
537 | * Used on declarations introduced in Mac OS X 10.2, | |
538 | * but later deprecated in Mac OS X 10.5 | |
539 | */ | |
540 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 | |
541 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 DEPRECATED_ATTRIBUTE | |
542 | #else | |
543 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER | |
544 | #endif | |
545 | ||
546 | /* | |
547 | * AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 | |
548 | * | |
549 | * Used on declarations introduced in Mac OS X 10.3, | |
550 | * but later deprecated in Mac OS X 10.5 | |
551 | */ | |
552 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 | |
553 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 DEPRECATED_ATTRIBUTE | |
554 | #else | |
555 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER | |
556 | #endif | |
557 | ||
558 | /* | |
559 | * AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 | |
560 | * | |
561 | * Used on declarations introduced in Mac OS X 10.4, | |
562 | * but later deprecated in Mac OS X 10.5 | |
563 | */ | |
564 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 | |
565 | #define AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 DEPRECATED_ATTRIBUTE | |
566 | #else | |
567 | #define AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER | |
568 | #endif | |
569 | ||
570 | /* | |
571 | * DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER | |
572 | * | |
573 | * Used on types deprecated in Mac OS X 10.5 | |
574 | */ | |
575 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 | |
576 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER DEPRECATED_ATTRIBUTE | |
577 | #else | |
578 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER | |
579 | #endif | |
580 | ||
581 | ||
582 | ||
583 | ||
584 | ||
585 | ||
586 | /* | |
587 | * AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER | |
588 | * | |
589 | * Used on declarations introduced in Mac OS X 10.6 | |
590 | */ | |
591 | #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6 | |
592 | #define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER UNAVAILABLE_ATTRIBUTE | |
593 | #elif MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6 | |
594 | #define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER WEAK_IMPORT_ATTRIBUTE | |
595 | #else | |
596 | #define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER | |
597 | #endif | |
598 | ||
599 | /* | |
600 | * AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER_BUT_DEPRECATED | |
601 | * | |
602 | * Used on declarations introduced in Mac OS X 10.6, | |
603 | * and deprecated in Mac OS X 10.6 | |
604 | */ | |
605 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 | |
606 | #define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE | |
607 | #else | |
608 | #define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER_BUT_DEPRECATED AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER | |
609 | #endif | |
610 | ||
611 | /* | |
612 | * AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 | |
613 | * | |
614 | * Used on declarations introduced in Mac OS X 10.0, | |
615 | * but later deprecated in Mac OS X 10.6 | |
616 | */ | |
617 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 | |
618 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 DEPRECATED_ATTRIBUTE | |
619 | #else | |
620 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER | |
621 | #endif | |
622 | ||
623 | /* | |
624 | * AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 | |
625 | * | |
626 | * Used on declarations introduced in Mac OS X 10.1, | |
627 | * but later deprecated in Mac OS X 10.6 | |
628 | */ | |
629 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 | |
630 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 DEPRECATED_ATTRIBUTE | |
631 | #else | |
632 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER | |
633 | #endif | |
634 | ||
635 | /* | |
636 | * AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 | |
637 | * | |
638 | * Used on declarations introduced in Mac OS X 10.2, | |
639 | * but later deprecated in Mac OS X 10.6 | |
640 | */ | |
641 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 | |
642 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 DEPRECATED_ATTRIBUTE | |
643 | #else | |
644 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER | |
645 | #endif | |
646 | ||
647 | /* | |
648 | * AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 | |
649 | * | |
650 | * Used on declarations introduced in Mac OS X 10.3, | |
651 | * but later deprecated in Mac OS X 10.6 | |
652 | */ | |
653 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 | |
654 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 DEPRECATED_ATTRIBUTE | |
655 | #else | |
656 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER | |
657 | #endif | |
658 | ||
659 | /* | |
660 | * AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 | |
661 | * | |
662 | * Used on declarations introduced in Mac OS X 10.4, | |
663 | * but later deprecated in Mac OS X 10.6 | |
664 | */ | |
665 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 | |
666 | #define AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 DEPRECATED_ATTRIBUTE | |
667 | #else | |
668 | #define AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER | |
669 | #endif | |
670 | ||
671 | /* | |
672 | * AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 | |
673 | * | |
674 | * Used on declarations introduced in Mac OS X 10.5, | |
675 | * but later deprecated in Mac OS X 10.6 | |
676 | */ | |
677 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 | |
678 | #define AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 DEPRECATED_ATTRIBUTE | |
679 | #else | |
680 | #define AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER | |
681 | #endif | |
682 | ||
683 | /* | |
684 | * DEPRECATED_IN_MAC_OS_X_VERSION_10_6_AND_LATER | |
685 | * | |
686 | * Used on types deprecated in Mac OS X 10.6 | |
687 | */ | |
688 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 | |
689 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_6_AND_LATER DEPRECATED_ATTRIBUTE | |
690 | #else | |
691 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_6_AND_LATER | |
692 | #endif | |
693 | ||
694 | ||
695 | ||
696 | ||
697 | ||
698 | /* | |
699 | * AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER | |
700 | * | |
701 | * Used on declarations introduced in Mac OS X 10.7 | |
702 | */ | |
703 | #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | |
704 | #define AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER UNAVAILABLE_ATTRIBUTE | |
705 | #elif MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 | |
706 | #define AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER WEAK_IMPORT_ATTRIBUTE | |
707 | #else | |
708 | #define AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER | |
709 | #endif | |
710 | ||
711 | /* | |
712 | * AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER_BUT_DEPRECATED | |
713 | * | |
714 | * Used on declarations introduced in Mac OS X 10.7, | |
715 | * and deprecated in Mac OS X 10.7 | |
716 | */ | |
717 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 | |
718 | #define AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE | |
719 | #else | |
720 | #define AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER_BUT_DEPRECATED AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER | |
721 | #endif | |
722 | ||
723 | /* | |
724 | * AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 | |
725 | * | |
726 | * Used on declarations introduced in Mac OS X 10.0, | |
727 | * but later deprecated in Mac OS X 10.7 | |
728 | */ | |
729 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 | |
730 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 DEPRECATED_ATTRIBUTE | |
731 | #else | |
732 | #define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER | |
733 | #endif | |
734 | ||
735 | /* | |
736 | * AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 | |
737 | * | |
738 | * Used on declarations introduced in Mac OS X 10.1, | |
739 | * but later deprecated in Mac OS X 10.7 | |
740 | */ | |
741 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 | |
742 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 DEPRECATED_ATTRIBUTE | |
743 | #else | |
744 | #define AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER | |
745 | #endif | |
746 | ||
747 | /* | |
748 | * AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 | |
749 | * | |
750 | * Used on declarations introduced in Mac OS X 10.2, | |
751 | * but later deprecated in Mac OS X 10.7 | |
752 | */ | |
753 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 | |
754 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 DEPRECATED_ATTRIBUTE | |
755 | #else | |
756 | #define AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER | |
757 | #endif | |
758 | ||
759 | /* | |
760 | * AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 | |
761 | * | |
762 | * Used on declarations introduced in Mac OS X 10.3, | |
763 | * but later deprecated in Mac OS X 10.7 | |
764 | */ | |
765 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 | |
766 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 DEPRECATED_ATTRIBUTE | |
767 | #else | |
768 | #define AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER | |
769 | #endif | |
770 | ||
771 | /* | |
772 | * AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 | |
773 | * | |
774 | * Used on declarations introduced in Mac OS X 10.4, | |
775 | * but later deprecated in Mac OS X 10.7 | |
776 | */ | |
777 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 | |
778 | #define AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 DEPRECATED_ATTRIBUTE | |
779 | #else | |
780 | #define AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER | |
781 | #endif | |
782 | ||
783 | /* | |
784 | * AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 | |
785 | * | |
786 | * Used on declarations introduced in Mac OS X 10.5, | |
787 | * but later deprecated in Mac OS X 10.7 | |
788 | */ | |
789 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 | |
790 | #define AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 DEPRECATED_ATTRIBUTE | |
791 | #else | |
792 | #define AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER | |
793 | #endif | |
794 | ||
795 | /* | |
796 | * AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 | |
797 | * | |
798 | * Used on declarations introduced in Mac OS X 10.6, | |
799 | * but later deprecated in Mac OS X 10.7 | |
800 | */ | |
801 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 | |
802 | #define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 DEPRECATED_ATTRIBUTE | |
803 | #else | |
804 | #define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER | |
805 | #endif | |
806 | ||
807 | /* | |
808 | * DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER | |
809 | * | |
810 | * Used on types deprecated in Mac OS X 10.7 | |
811 | */ | |
812 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 | |
813 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER DEPRECATED_ATTRIBUTE | |
814 | #else | |
815 | #define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER | |
816 | #endif | |
817 | ||
818 | #endif /* __AVAILABILITYMACROS__ */ | |
819 | ||
820 |