11 #ifndef _LIBCPP_SUPPORT_ANDROID_LOCALE_BIONIC_H
12 #define _LIBCPP_SUPPORT_ANDROID_LOCALE_BIONIC_H
14 #if defined(__BIONIC__)
27 #if defined(__ANDROID__)
29 #include <android/api-level.h>
30 #include <android/ndk-version.h>
31 #include <support/xlocale/__posix_l_fallback.h>
34 #if __NDK_MAJOR__ <= 16
35 #if __ANDROID_API__ < 21
36 #include <support/xlocale/__strtonum_fallback.h>
37 #elif __ANDROID_API__ < 26
39 #if defined(__cplusplus)
43 inline _LIBCPP_INLINE_VISIBILITY
float strtof_l(
const char* __nptr,
char** __endptr,
45 return ::strtof(__nptr, __endptr);
48 inline _LIBCPP_INLINE_VISIBILITY
double strtod_l(
const char* __nptr,
50 return ::strtod(__nptr, __endptr);
53 inline _LIBCPP_INLINE_VISIBILITY
long strtol_l(
const char* __nptr,
char** __endptr,
55 return ::strtol(__nptr, __endptr, __base);
58 #if defined(__cplusplus)
62 #endif // __ANDROID_API__ < 26
64 #endif // __NDK_MAJOR__ <= 16
65 #endif // defined(__ANDROID__)
67 #endif // defined(__BIONIC__)
68 #endif // _LIBCPP_SUPPORT_ANDROID_LOCALE_BIONIC_H