[libcxx-commits] [libcxx] [libc++] Fix compilation for NetBSD. (PR #143055)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 6 09:02:19 PDT 2025
================
@@ -24,8 +24,6 @@
# include <wctype.h>
#endif
-#include <xlocale.h>
----------------
ldionne wrote:
Where are functions like `strtof_l` defined on NetBSD? We need each header to include what it uses: moving this include up the stack means that `bsd_like.h` is technically missing an include on Apple and FreeBSD. Instead, we should probably do
```
#if __has_include(<xlocale.h>)
# include <xlocale.h>
#endif
```
https://github.com/llvm/llvm-project/pull/143055
More information about the libcxx-commits
mailing list