@@ -194,7 +194,7 @@ typedef basic_fstream<wchar_t> wfstream;
194194#include < typeinfo>
195195#include < version>
196196
197- #if !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY )
197+ #if !defined(_LIBCPP_HAS_NO_FILESYSTEM )
198198# include < filesystem>
199199#endif
200200
@@ -209,7 +209,7 @@ _LIBCPP_PUSH_MACROS
209209# define _LIBCPP_HAS_NO_OFF_T_FUNCTIONS
210210#endif
211211
212- #if !defined(_LIBCPP_HAS_NO_FSTREAM )
212+ #if !defined(_LIBCPP_HAS_NO_FILESYSTEM )
213213
214214_LIBCPP_BEGIN_NAMESPACE_STD
215215
@@ -245,7 +245,7 @@ public:
245245 _LIBCPP_INLINE_VISIBILITY
246246 basic_filebuf* open (const string& __s, ios_base::openmode __mode);
247247
248- #if _LIBCPP_STD_VER >= 17 && !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
248+ #if _LIBCPP_STD_VER >= 17
249249 _LIBCPP_AVAILABILITY_FILESYSTEM _LIBCPP_INLINE_VISIBILITY
250250 basic_filebuf* open (const _VSTD_FS::path& __p, ios_base::openmode __mode) {
251251 return open (__p.c_str (), __mode);
@@ -1168,7 +1168,7 @@ public:
11681168#endif
11691169 _LIBCPP_INLINE_VISIBILITY
11701170 explicit basic_ifstream (const string& __s, ios_base::openmode __mode = ios_base::in);
1171- #if _LIBCPP_STD_VER >= 17 && !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
1171+ #if _LIBCPP_STD_VER >= 17
11721172 _LIBCPP_AVAILABILITY_FILESYSTEM _LIBCPP_INLINE_VISIBILITY
11731173 explicit basic_ifstream (const filesystem::path& __p, ios_base::openmode __mode = ios_base::in)
11741174 : basic_ifstream(__p.c_str(), __mode) {}
@@ -1189,7 +1189,7 @@ public:
11891189 void open (const wchar_t * __s, ios_base::openmode __mode = ios_base::in);
11901190#endif
11911191 void open (const string& __s, ios_base::openmode __mode = ios_base::in);
1192- #if _LIBCPP_STD_VER >= 17 && !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
1192+ #if _LIBCPP_STD_VER >= 17
11931193 _LIBCPP_AVAILABILITY_FILESYSTEM _LIBCPP_INLINE_VISIBILITY
11941194 void open (const filesystem::path& __p,
11951195 ios_base::openmode __mode = ios_base::in) {
@@ -1369,7 +1369,7 @@ public:
13691369 _LIBCPP_INLINE_VISIBILITY
13701370 explicit basic_ofstream (const string& __s, ios_base::openmode __mode = ios_base::out);
13711371
1372- #if _LIBCPP_STD_VER >= 17 && !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
1372+ #if _LIBCPP_STD_VER >= 17
13731373 _LIBCPP_AVAILABILITY_FILESYSTEM _LIBCPP_INLINE_VISIBILITY
13741374 explicit basic_ofstream (const filesystem::path& __p, ios_base::openmode __mode = ios_base::out)
13751375 : basic_ofstream(__p.c_str(), __mode) {}
@@ -1392,7 +1392,7 @@ public:
13921392#endif
13931393 void open (const string& __s, ios_base::openmode __mode = ios_base::out);
13941394
1395- #if _LIBCPP_STD_VER >= 17 && !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
1395+ #if _LIBCPP_STD_VER >= 17
13961396 _LIBCPP_AVAILABILITY_FILESYSTEM _LIBCPP_INLINE_VISIBILITY
13971397 void open (const filesystem::path& __p, ios_base::openmode __mode = ios_base::out)
13981398 { return open (__p.c_str (), __mode); }
@@ -1570,7 +1570,7 @@ public:
15701570 _LIBCPP_INLINE_VISIBILITY
15711571 explicit basic_fstream (const string& __s, ios_base::openmode __mode = ios_base::in | ios_base::out);
15721572
1573- #if _LIBCPP_STD_VER >= 17 && !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
1573+ #if _LIBCPP_STD_VER >= 17
15741574 _LIBCPP_AVAILABILITY_FILESYSTEM _LIBCPP_INLINE_VISIBILITY
15751575 explicit basic_fstream (const filesystem::path& __p, ios_base::openmode __mode = ios_base::in | ios_base::out)
15761576 : basic_fstream(__p.c_str(), __mode) {}
@@ -1595,7 +1595,7 @@ public:
15951595#endif
15961596 _LIBCPP_HIDE_FROM_ABI void open (const string& __s, ios_base::openmode __mode = ios_base::in | ios_base::out);
15971597
1598- #if _LIBCPP_STD_VER >= 17 && !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
1598+ #if _LIBCPP_STD_VER >= 17
15991599 _LIBCPP_AVAILABILITY_FILESYSTEM _LIBCPP_INLINE_VISIBILITY
16001600 void open (const filesystem::path& __p, ios_base::openmode __mode = ios_base::in|ios_base::out)
16011601 { return open (__p.c_str (), __mode); }
@@ -1745,7 +1745,7 @@ extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_filebuf<char>;
17451745
17461746_LIBCPP_END_NAMESPACE_STD
17471747
1748- #endif // _LIBCPP_HAS_NO_FSTREAM
1748+ #endif // _LIBCPP_HAS_NO_FILESYSTEM
17491749
17501750_LIBCPP_POP_MACROS
17511751
0 commit comments