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/modules/std/filesystem.inc | |
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/modules/std/filesystem.inc')
-rw-r--r-- | libcxx/modules/std/filesystem.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libcxx/modules/std/filesystem.inc b/libcxx/modules/std/filesystem.inc index 3214b49f..0437a32 100644 --- a/libcxx/modules/std/filesystem.inc +++ b/libcxx/modules/std/filesystem.inc @@ -18,7 +18,7 @@ export namespace std::filesystem { // [fs.class.filesystem.error], filesystem errors using std::filesystem::filesystem_error; -#ifndef _LIBCPP_HAS_NO_FILESYSTEM +#if _LIBCPP_HAS_FILESYSTEM // [fs.class.directory.entry], directory entries using std::filesystem::directory_entry; @@ -31,7 +31,7 @@ export namespace std::filesystem { // [fs.class.rec.dir.itr], recursive directory iterators using std::filesystem::recursive_directory_iterator; -#endif // _LIBCPP_HAS_NO_FILESYSTEM +#endif // _LIBCPP_HAS_FILESYSTEM // [fs.rec.dir.itr.nonmembers], range access for recursive directory iterators @@ -58,7 +58,7 @@ export namespace std::filesystem { using std::filesystem::operator|=; using std::filesystem::operator~; -#ifndef _LIBCPP_HAS_NO_FILESYSTEM +#if _LIBCPP_HAS_FILESYSTEM // [fs.op.funcs], filesystem operations using std::filesystem::absolute; using std::filesystem::canonical; @@ -102,7 +102,7 @@ export namespace std::filesystem { using std::filesystem::symlink_status; using std::filesystem::temp_directory_path; using std::filesystem::weakly_canonical; -#endif // _LIBCPP_HAS_NO_FILESYSTEM +#endif // _LIBCPP_HAS_FILESYSTEM // [depr.fs.path.factory] using std::filesystem::u8path; @@ -114,8 +114,8 @@ export namespace std { } export namespace std::ranges { -#ifndef _LIBCPP_HAS_NO_FILESYSTEM +#if _LIBCPP_HAS_FILESYSTEM using std::ranges::enable_borrowed_range; using std::ranges::enable_view; -#endif // _LIBCPP_HAS_NO_FILESYSTEM +#endif // _LIBCPP_HAS_FILESYSTEM } // namespace std::ranges |