diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2024-11-06 10:39:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 10:39:19 +0100 |
commit | c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c (patch) | |
tree | dbfd623fea1771448ff564d5fc4221db7fca2f84 /libcxx/src/print.cpp | |
parent | 5acc4a3dc0e2145d2bfef47f1543bb291c2b866a (diff) | |
download | llvm-c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c.zip llvm-c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c.tar.gz llvm-c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c.tar.bz2 |
[libc++] Refactor the configuration macros to being always defined (#112094)
This is a follow-up to #89178. This updates the `<__config_site>`
macros.
Diffstat (limited to 'libcxx/src/print.cpp')
-rw-r--r-- | libcxx/src/print.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/print.cpp b/libcxx/src/print.cpp index 8fa59fdd..37b1fc0 100644 --- a/libcxx/src/print.cpp +++ b/libcxx/src/print.cpp @@ -42,7 +42,7 @@ _LIBCPP_EXPORTED_FROM_ABI bool __is_windows_terminal(FILE* __stream) { return GetConsoleMode(reinterpret_cast<void*>(__handle), &__mode); } -# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS +# if _LIBCPP_HAS_WIDE_CHARACTERS _LIBCPP_EXPORTED_FROM_ABI void __write_to_windows_console([[maybe_unused]] FILE* __stream, [[maybe_unused]] wstring_view __view) { // https://learn.microsoft.com/en-us/windows/console/writeconsole @@ -54,7 +54,7 @@ __write_to_windows_console([[maybe_unused]] FILE* __stream, [[maybe_unused]] wst __throw_system_error(filesystem::detail::make_windows_error(GetLastError()), "failed to write formatted output"); } } -# endif // _LIBCPP_HAS_NO_WIDE_CHARACTERS +# endif // _LIBCPP_HAS_WIDE_CHARACTERS #elif __has_include(<unistd.h>) // !_LIBCPP_WIN32API |