aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/filesystem/time_utils.h
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2024-11-06 10:39:19 +0100
committerGitHub <noreply@github.com>2024-11-06 10:39:19 +0100
commitc6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c (patch)
treedbfd623fea1771448ff564d5fc4221db7fca2f84 /libcxx/src/filesystem/time_utils.h
parent5acc4a3dc0e2145d2bfef47f1543bb291c2b866a (diff)
downloadllvm-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/filesystem/time_utils.h')
-rw-r--r--libcxx/src/filesystem/time_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/filesystem/time_utils.h b/libcxx/src/filesystem/time_utils.h
index 13f0d6f..89352e5 100644
--- a/libcxx/src/filesystem/time_utils.h
+++ b/libcxx/src/filesystem/time_utils.h
@@ -299,7 +299,7 @@ inline TimeSpec extract_mtime(StatT const& st) { return st.st_mtim; }
inline TimeSpec extract_atime(StatT const& st) { return st.st_atim; }
#endif
-#ifndef _LIBCPP_HAS_NO_FILESYSTEM
+#if _LIBCPP_HAS_FILESYSTEM
# if !defined(_LIBCPP_WIN32API)
inline bool posix_utimes(const path& p, std::array<TimeSpec, 2> const& TS, error_code& ec) {
@@ -342,7 +342,7 @@ inline file_time_type __extract_last_write_time(const path& p, const StatT& st,
return fs_time::convert_from_timespec(ts);
}
-#endif // !_LIBCPP_HAS_NO_FILESYSTEM
+#endif // _LIBCPP_HAS_FILESYSTEM
} // namespace detail