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/ostream.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/ostream.cpp')
-rw-r--r-- | libcxx/src/ostream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/ostream.cpp b/libcxx/src/ostream.cpp index f036aaf..e0f14a8 100644 --- a/libcxx/src/ostream.cpp +++ b/libcxx/src/ostream.cpp @@ -7,7 +7,7 @@ //===----------------------------------------------------------------------===// #include <__config> -#ifndef _LIBCPP_HAS_NO_FILESYSTEM +#if _LIBCPP_HAS_FILESYSTEM # include <fstream> #endif #include <ostream> @@ -26,7 +26,7 @@ _LIBCPP_EXPORTED_FROM_ABI FILE* __get_ostream_file(ostream& __os) { // importance on Windows. #if _LIBCPP_HAS_RTTI auto* __rdbuf = __os.rdbuf(); -# ifndef _LIBCPP_HAS_NO_FILESYSTEM +# if _LIBCPP_HAS_FILESYSTEM if (auto* __buffer = dynamic_cast<filebuf*>(__rdbuf)) return __buffer->__file_; # endif |