[libcxx-commits] [libcxx] [libc++] Fix the locale base API on Linux with musl (PR #167980)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 4 10:22:25 PST 2025


ldionne wrote:

IIUC it would be more correct for us to say something like

```
#  elif defined(_LIBCPP_USING_GLIBC)
#    include <__locale_dir/support/glibc.h>
```

than what we do today, i.e.

```
#  elif defined(__linux__)
#    include <__locale_dir/support/linux.h>
```

Would you agree?

https://github.com/llvm/llvm-project/pull/167980


More information about the libcxx-commits mailing list