[libcxx-commits] [libcxx] [libc++] Fix Newlib check in __fwd/ios.h (PR #168952)

Jon Roelofs via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 21 09:11:49 PST 2025


================
@@ -31,7 +31,7 @@ using wios = basic_ios<wchar_t>;
 template <class _CharT, class _Traits>
 class _LIBCPP_PREFERRED_NAME(ios) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wios)) basic_ios;
 
-#if defined(_NEWLIB_VERSION)
+#if _LIBCPP_HAS_NEWLIB_LIBC
----------------
jroelofs wrote:

worth fixing all of them while you're here?

```
$ git grep defined\(_NEWLIB_VERSION ../libcxx/{include,src} | wc -l
      14
```

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


More information about the libcxx-commits mailing list