Skip to content

Commit 26b82e5

Browse files
authored
Revert "[libc++] Fix the locale base API on Linux with musl" (#169884)
The patch has been committed without approval from the libc++ review group and is implementing the locale base API in a way it wasn't intended to be implemented. The commit also contains a no-reply github E-Mail, which is in conflict with the LLVM developer policy. Reverts #167980
1 parent b27af83 commit 26b82e5

File tree

1 file changed

+0
-15
lines changed
  • libcxx/include/__locale_dir/support

1 file changed

+0
-15
lines changed

libcxx/include/__locale_dir/support/linux.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,30 +83,15 @@ inline _LIBCPP_HIDE_FROM_ABI __lconv_t* __localeconv(__locale_t& __loc) {
8383
// Strtonum functions
8484
//
8585
inline _LIBCPP_HIDE_FROM_ABI float __strtof(const char* __nptr, char** __endptr, __locale_t __loc) {
86-
#if !_LIBCPP_HAS_MUSL_LIBC || defined(_GNU_SOURCE)
8786
return ::strtof_l(__nptr, __endptr, __loc);
88-
#else
89-
(void)__loc;
90-
return ::strtof(__nptr, __endptr);
91-
#endif
9287
}
9388

9489
inline _LIBCPP_HIDE_FROM_ABI double __strtod(const char* __nptr, char** __endptr, __locale_t __loc) {
95-
#if !_LIBCPP_HAS_MUSL_LIBC || defined(_GNU_SOURCE)
9690
return ::strtod_l(__nptr, __endptr, __loc);
97-
#else
98-
(void)__loc;
99-
return ::strtod(__nptr, __endptr);
100-
#endif
10191
}
10292

10393
inline _LIBCPP_HIDE_FROM_ABI long double __strtold(const char* __nptr, char** __endptr, __locale_t __loc) {
104-
#if !_LIBCPP_HAS_MUSL_LIBC || defined(_GNU_SOURCE)
10594
return ::strtold_l(__nptr, __endptr, __loc);
106-
#else
107-
(void)__loc;
108-
return ::strtold(__nptr, __endptr);
109-
#endif
11095
}
11196

11297
//

0 commit comments

Comments
 (0)