Lines Matching refs:is
3 Using `#ifdef` or equivalents is common when writing portable code. Which to use
9 If your code is specific to Android's C library, bionic, use `__BIONIC__`. This
10 is typically a good choice when you use libc API that's only in bionic, such as
12 `__GLIBC__`, `__APPLE__`, or `_WIN32`. Note that although bionic is most often
13 seen on Android devices, it is possible to use bionic on the host too.
17 If your code is specific to Android devices, use `__ANDROID__`. This isn't
18 useful as you might think, and one of the other choices on this page is usually
19 more appropriate. This is typically a good choice if you have code that's part
21 Genuine cases are quite rare, and `__BIONIC__` is often more specific (but
22 remember that it is possible -- if unusual -- to use bionic on the host).
27 `__ANDROID_API__` to test which version you're building against. This is
31 One thing to note (if your code may also be built as part of the OS itself) is
38 If your code requires a Linux kernel, use `__linux__`. This is typically a good
48 This is typically a good choice when your code uses non-NDK API if it's built as
59 If your code is specific to a particular processor architecture, use
62 `__i386__`. Android only supports riscv64, so `__riscv` is a sufficient
65 whether `__riscv_xlen` is 32 or 64.