[libcxx-commits] [libcxx] [llvm] [libc++] Fix checks for terminal and flushes in std::print() (PR #70321)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 11 02:53:16 PDT 2026


================
@@ -87,7 +87,7 @@ _LIBCPP_EXPORTED_FROM_ABI FILE* __get_ostream_file(ostream& __os);
 #    if _LIBCPP_HAS_UNICODE
 template <class = void> // TODO PRINT template or availability markup fires too eagerly (http://llvm.org/PR61563).
 _LIBCPP_HIDE_FROM_ABI void __vprint_unicode(ostream& __os, string_view __fmt, format_args __args, bool __write_nl) {
-#      if _LIBCPP_AVAILABILITY_HAS_PRINT == 0
+#      if _LIBCPP_AVAILABILITY_HAS_PRINT == 0 || !defined(_LIBCPP_WIN32API)
----------------
philnik777 wrote:

We don't need the availability macros anymore. Let's remove them.

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


More information about the libcxx-commits mailing list