mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-04-04 22:33:38 +03:00
[libc++] Fix the locale base API on Linux with musl (#128936)
This commit is contained in:
parent
dc50e972e6
commit
d000b313c0
1 changed files with 10 additions and 0 deletions
|
@ -95,12 +95,22 @@ inline _LIBCPP_HIDE_FROM_ABI long double __strtold(const char* __nptr, char** __
|
|||
}
|
||||
|
||||
inline _LIBCPP_HIDE_FROM_ABI long long __strtoll(const char* __nptr, char** __endptr, int __base, __locale_t __loc) {
|
||||
#if !_LIBCPP_HAS_MUSL_LIBC
|
||||
return ::strtoll_l(__nptr, __endptr, __base, __loc);
|
||||
#else
|
||||
(void)__loc;
|
||||
return ::strtoll(__nptr, __endptr, __base);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline _LIBCPP_HIDE_FROM_ABI unsigned long long
|
||||
__strtoull(const char* __nptr, char** __endptr, int __base, __locale_t __loc) {
|
||||
#if !_LIBCPP_HAS_MUSL_LIBC
|
||||
return ::strtoull_l(__nptr, __endptr, __base, __loc);
|
||||
#else
|
||||
(void)__loc;
|
||||
return ::strtoull(__nptr, __endptr, __base);
|
||||
#endif
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue