Lines Matching refs:to
1 # When to use which `#define`
3 Using `#ifdef` or equivalents is common when writing portable code. Which to use
5 related to Android.
9 If your code is specific to Android's C library, bionic, use `__BIONIC__`. This
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
20 of the OS and needs to behave differently on the host than on the device.
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
32 that for most of the year, the OS builds with this set to 10,000 rather than the
34 value of `__ANDROID_API__` drops to that number.
40 a file in `/proc`, but aren't restricted to just Android and would work equally
47 itself, use `__ANDROID_NDK__` to differentiate between those two circumstances.
49 part of the OS, but sticks to just the NDK APIs otherwise.
53 If your code can be built with a variety of different NDK versions, and needs to
54 work around issues with some of them, use these macros to detect the versinon of
59 If your code is specific to a particular processor architecture, use these
60 macros to conditionally compile. Note that the ABI usually called `arm64` uses
66 64-bit -- use these macros to conditionally compile.