Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions libcxx/include/__locale_dir/support/linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,30 @@ inline _LIBCPP_HIDE_FROM_ABI __lconv_t* __localeconv(__locale_t& __loc) {
// Strtonum functions
//
inline _LIBCPP_HIDE_FROM_ABI float __strtof(const char* __nptr, char** __endptr, __locale_t __loc) {
#if !_LIBCPP_HAS_MUSL_LIBC || defined(_GNU_SOURCE)
return ::strtof_l(__nptr, __endptr, __loc);
#else
(void)__loc;
return ::strtof(__nptr, __endptr);
#endif
}

inline _LIBCPP_HIDE_FROM_ABI double __strtod(const char* __nptr, char** __endptr, __locale_t __loc) {
#if !_LIBCPP_HAS_MUSL_LIBC || defined(_GNU_SOURCE)
return ::strtod_l(__nptr, __endptr, __loc);
#else
(void)__loc;
return ::strtod(__nptr, __endptr);
#endif
}

inline _LIBCPP_HIDE_FROM_ABI long double __strtold(const char* __nptr, char** __endptr, __locale_t __loc) {
#if !_LIBCPP_HAS_MUSL_LIBC || defined(_GNU_SOURCE)
return ::strtold_l(__nptr, __endptr, __loc);
#else
(void)__loc;
return ::strtold(__nptr, __endptr);
#endif
}

inline _LIBCPP_HIDE_FROM_ABI long long __strtoll(const char* __nptr, char** __endptr, int __base, __locale_t __loc) {
Expand Down
Loading