From c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Wed, 6 Nov 2024 10:39:19 +0100 Subject: [libc++] Refactor the configuration macros to being always defined (#112094) This is a follow-up to #89178. This updates the `<__config_site>` macros. --- libcxx/src/filesystem/time_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcxx/src/filesystem/time_utils.h') 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 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 -- cgit v1.1