platform_bionic/libc/include/bits
Logan Chien 73d1fb9579 Fix get_device_api_level_inlines.h in versioner
This commit fixes an inline and non-inline mismatch error caused by
`get_device_api_level_inlines.h`.

Versioner includes both `android/api-level.h` and
`bits/get_device_api_level_inlines.h` in the test.  When __ANDROID_API__
is greater than or equal to __ANDROID_API_Q__, `android/api-level.h`
declares a non-inline `android_get_device_api_level()`.  On the
contrary, `bits/get_device_api_level_inlines.h` defines a static inline
`android_get_device_api_level()` function.  These conflicting
declarations result in compilation error.

This commit fixes the problem by guarding full
`get_device_api_level_inline.h` with
`#if defined(__BIONIC_GET_DEVICE_API_LEVEL_INLINE)` so that
`get_device_api_level_inline.h` can be no-op when it is not properly
included.

Note: This is not revealed until recently because API level 29 is added
in Mar 14 and the prebuilt binary for versioner hasn't been updated.

Test: ./bionic/tools/versioner/run_tests.py
Change-Id: Ia7d5fbdcaf3d98787e60780f6cff2a24016324f5
2019-03-20 22:49:38 +08:00
..
fortify Reland "Retire GCC FORTIFY." 2018-07-24 19:36:51 +00:00
auxvec.h Another round of documentation. 2018-10-04 16:35:13 -07:00
elf_arm.h Fix arm32/64 dynamic TLS relocations 2018-07-30 23:49:19 -07:00
elf_arm64.h Fix arm32/64 dynamic TLS relocations 2018-07-30 23:49:19 -07:00
elf_mips.h Make all the ELF relocation constants available. 2017-04-19 13:28:32 -07:00
elf_x86.h Make all the ELF relocation constants available. 2017-04-19 13:28:32 -07:00
elf_x86_64.h Make all the ELF relocation constants available. 2017-04-19 13:28:32 -07:00
epoll_event.h Another round of documentation. 2018-10-04 16:35:13 -07:00
fcntl.h Another round of documentation. 2018-10-04 16:35:13 -07:00
fenv_arm.h Remove ARM/MIPS fenv duplication. 2018-08-30 09:26:43 -07:00
fenv_inlines_arm.h Remove ARM/MIPS fenv duplication. 2018-08-30 09:26:43 -07:00
fenv_inlines_mips.h Remove ARM/MIPS fenv duplication. 2018-08-30 09:26:43 -07:00
fenv_mips.h Remove ARM/MIPS fenv duplication. 2018-08-30 09:26:43 -07:00
fenv_x86.h Remove ARM/MIPS fenv duplication. 2018-08-30 09:26:43 -07:00
fenv_x86_64.h Remove ARM/MIPS fenv duplication. 2018-08-30 09:26:43 -07:00
get_device_api_level_inlines.h Fix get_device_api_level_inlines.h in versioner 2019-03-20 22:49:38 +08:00
getopt.h Another round of documentation. 2018-10-04 16:35:13 -07:00
glibc-syscalls.h Update to v4.19 kernel headers. 2018-10-30 09:21:16 -07:00
in_addr.h Another round of documentation. 2018-10-04 16:35:13 -07:00
ioctl.h Make android_get_application_target_sdk_version available to the NDK. 2018-11-15 11:07:30 -08:00
ip_mreq_source.h Another round of documentation. 2018-10-04 16:35:13 -07:00
ip_msfilter.h Another round of documentation. 2018-10-04 16:35:13 -07:00
lockf.h Another round of documentation. 2018-10-04 16:35:13 -07:00
mbstate_t.h Another round of documentation. 2018-10-04 16:35:13 -07:00
posix_limits.h Merge "Implement pthread_attr_getinheritsched/pthread_attr_setinheritsched." 2017-10-26 16:12:04 +00:00
pthread_types.h pthread barrier and spinlock types should only appear at API level 24. 2017-03-21 09:55:32 -07:00
sa_family_t.h Another round of documentation. 2018-10-04 16:35:13 -07:00
seek_constants.h Another round of documentation. 2018-10-04 16:35:13 -07:00
signal_types.h Add uc_sigmask64. 2018-02-13 19:09:04 -08:00
strcasecmp.h Another round of documentation. 2018-10-04 16:35:13 -07:00
struct_file.h Another round of documentation. 2018-10-04 16:35:13 -07:00
sysconf.h Add _SC_UIO_MAXIOV as a synonym for _SC_IOV_MAX. 2018-10-09 13:56:06 -07:00
termios_inlines.h Add trivial termios tests. 2017-12-14 09:46:50 -08:00
timespec.h Another round of documentation. 2018-10-04 16:35:13 -07:00
wait.h Another round of documentation. 2018-10-04 16:35:13 -07:00
wchar_limits.h Another round of documentation. 2018-10-04 16:35:13 -07:00
wctype.h Name function arguments in libc headers for Studio. 2017-08-11 17:45:59 -07:00