Debian Codegraph @

Tests/RunCMake/Android/android.h

raw
1 #ifndef __ANDROID__
2 # error "__ANDROID__ not defined"
3 #endif
4
5 #include <android/api-level.h>
6
7 #if API_LEVEL != __ANDROID_API__
8 # error "API levels do not match"
9 #endif
10
11 #ifdef COMPILER_IS_CLANG
12 # ifndef __clang__
13 # error "COMPILER_IS_CLANG but __clang__ is not defined"
14 # endif
15 #else
16 # ifdef __clang__
17 # error "!COMPILER_IS_CLANG but __clang__ is defined"
18 # endif
19 #endif
20
21 #ifdef ARM_MODE
22 # if ARM_MODE == 1 && defined(__thumb__)
23 # error "ARM_MODE==1 but __thumb__ is defined"
24 # elif ARM_MODE == 0 && !defined(__thumb__)
25 # error "ARM_MODE==0 but __thumb__ is not defined"
26 # endif
27 #endif
28
29 #ifdef ARM_NEON
30 # if ARM_NEON == 0 && defined(__ARM_NEON__)
31 # error "ARM_NEON==0 but __ARM_NEON__ is defined"
32 # elif ARM_NEON == 1 && !defined(__ARM_NEON__)
33 # error "ARM_NEON==1 but __ARM_NEON__ is not defined"
34 # endif
35 #endif
36
37 #ifdef ABI_armeabi
38 # ifndef __ARM_EABI__
39 # error "ABI_armeabi: __ARM_EABI__ not defined"
40 # endif
41 # if __ARM_ARCH != 5
42 # error "ABI_armeabi: __ARM_ARCH is not 5"
43 # endif
44 #endif
45
46 #ifdef ABI_armeabi_v6
47 # ifndef __ARM_EABI__
48 # error "ABI_armeabi_v6: __ARM_EABI__ not defined"
49 # endif
50 # if __ARM_ARCH != 6
51 # error "ABI_armeabi_v6: __ARM_ARCH is not 6"
52 # endif
53 #endif
54
55 #ifdef ABI_armeabi_v7a
56 # ifndef __ARM_EABI__
57 # error "ABI_armeabi_v7a: __ARM_EABI__ not defined"
58 # endif
59 # if __ARM_ARCH != 7
60 # error "ABI_armeabi_v7a: __ARM_ARCH is not 7"
61 # endif
62 #endif
63
64 #ifdef ABI_arm64_v8a
65 # ifdef __ARM_EABI__
66 # error "ABI_arm64_v8a: __ARM_EABI__ defined"
67 # endif
68 # ifndef __aarch64__
69 # error "ABI_arm64_v8a: __aarch64__ not defined"
70 # endif
71 #endif
72
73 #ifdef ABI_mips
74 # if __mips != 32
75 # error "ABI_mips: __mips != 32"
76 # endif
77 # ifndef _ABIO32
78 # error "ABI_mips: _ABIO32 not defined"
79 # endif
80 #endif
81
82 #ifdef ABI_mips64
83 # if __mips != 64
84 # error "ABI_mips64: __mips != 64"
85 # endif
86 # ifndef _ABI64
87 # error "ABI_mips: _ABI64 not defined"
88 # endif
89 #endif
90
91 #ifdef ABI_x86
92 # ifndef __i686__
93 # error "ABI_x86: __i686__ not defined"
94 # endif
95 #endif
96
97 #ifdef ABI_x86_64
98 # ifndef __x86_64__
99 # error "ABI_x86_64: __x86_64__ not defined"
100 # endif
101 #endif
102
103 #include <stddef.h>