1 #if defined(__cplusplus) 2 extern "C" { 3 #endif 4 5 int always_available(); 6 7 int also_always_available() __INTRODUCED_IN(9); 8 9 10 #if __ANDROID_API__ >= 13 11 int needs_guard() __INTRODUCED_IN(13); 12 #endif /* __ANDROID_API__ >= 13 */ 13 14 15 #if __ANDROID_API__ >= 12 16 17 #if __ANDROID_API__ >= 13 18 int needs_guard_2() __INTRODUCED_IN(13); 19 #endif /* __ANDROID_API__ >= 13 */ 20 21 #endif 22 23 #if __ANDROID_API__ >= 13 24 int already_guarded() __INTRODUCED_IN(13); 25 #endif 26 27 #if __ANDROID_API__ > 13 28 int already_guarded_2() __INTRODUCED_IN(13); 29 #endif 30 31 #if defined(__arm__) 32 33 #if __ANDROID_API__ >= 14 34 int specific_arch() __INTRODUCED_IN(14); 35 #endif /* __ANDROID_API__ >= 14 */ 36 37 38 #if __ANDROID_API__ >= 14 39 int specific_arch_already_guarded() __INTRODUCED_IN(14); 40 #endif 41 42 #if __ANDROID_API__ > 14 43 int specific_arch_already_guarded_2() __INTRODUCED_IN(14); 44 #endif 45 #endif 46 47 #if defined(__arm__) || defined(__i386__) 48 49 #if __ANDROID_API__ >= 14 50 int multiple_archs() __INTRODUCED_IN(14); 51 #endif /* __ANDROID_API__ >= 14 */ 52 53 #endif 54 55 // __INTRODUCED_IN_64(21) should be ignored. 56 57 #if (!defined(__LP64__) && __ANDROID_API__ >= 24) || (defined(__LP64__)) 58 int multiple_introduced_1() __INTRODUCED_IN_32(24) __INTRODUCED_IN_64(21); 59 #endif /* (!defined(__LP64__) && __ANDROID_API__ >= 24) || (defined(__LP64__)) */ 60 61 62 // This needs different guards for 32 vs 64. 63 64 #if (!defined(__LP64__) && __ANDROID_API__ >= 24) || (defined(__LP64__) && __ANDROID_API__ >= 26) 65 int multiple_introduced_2() __INTRODUCED_IN_32(24) __INTRODUCED_IN_64(26); 66 #endif /* (!defined(__LP64__) && __ANDROID_API__ >= 24) || (defined(__LP64__) && __ANDROID_API__ >= 26) */ 67 68 69 // This produces both an LP64 and a not-LP64 check, but it doesn't need to check for all 64-bit 70 // targets separately. 71 72 #if (!defined(__LP64__) && __ANDROID_API__ >= 23) || (defined(__LP64__) && __ANDROID_API__ >= 23) 73 int multiple_introduced_3() __INTRODUCED_IN_32(23) __INTRODUCED_IN_64(23); 74 #endif /* (!defined(__LP64__) && __ANDROID_API__ >= 23) || (defined(__LP64__) && __ANDROID_API__ >= 23) */ 75 76 77 78 #if (!defined(__LP64__)) || (defined(__LP64__) && __ANDROID_API__ >= 28) 79 int added_to_lp64_late() __INTRODUCED_IN_64(28); 80 #endif /* (!defined(__LP64__)) || (defined(__LP64__) && __ANDROID_API__ >= 28) */ 81 82 83 #if defined(__cplusplus) 84 } 85 #endif 86