]>
Commit | Line | Data |
---|---|---|
427c49bc A |
1 | // |
2 | // SOSARCDefines.h | |
3 | // sec | |
4 | // | |
5 | // Created by John Hurley on 11/2/12. | |
6 | // | |
7 | // | |
8 | ||
9 | #ifndef sec_SOSARCDefines_h | |
10 | #define sec_SOSARCDefines_h | |
11 | ||
12 | #ifndef __has_feature | |
13 | #define __has_feature(x) 0 | |
14 | #endif | |
15 | #ifndef __has_extension | |
16 | #define __has_extension __has_feature // Compatibility with pre-3.0 compilers. | |
17 | #endif | |
18 | ||
19 | #if __has_feature(objc_arc) && __clang_major__ >= 3 | |
20 | #define ARC_ENABLED 1 | |
21 | #endif // __has_feature(objc_arc) | |
22 | ||
23 | #if !ARC_ENABLED || !defined(__clang__) || __clang_major__ < 3 | |
24 | ||
25 | #ifndef __bridge | |
26 | #define __bridge | |
27 | #endif | |
28 | #ifndef __bridge_retained | |
29 | #define __bridge_retained | |
30 | #endif | |
31 | #ifndef __bridge_transfer | |
32 | #define __bridge_transfer | |
33 | #endif | |
34 | #ifndef __autoreleasing | |
35 | #define __autoreleasing | |
36 | #endif | |
37 | #ifndef __strong | |
38 | #define __strong | |
39 | #endif | |
40 | #ifndef __weak | |
41 | #define __weak | |
42 | #endif | |
43 | #ifndef __unsafe_unretained | |
44 | #define __unsafe_unretained | |
45 | #endif | |
46 | ||
47 | #endif // __clang_major__ < 3 | |
48 | ||
49 | #endif |