aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/ostream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/src/ostream.cpp')
-rw-r--r--libcxx/src/ostream.cpp4
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