File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3636#include < __config>
3737#include < __format/format_error.h>
3838#include < __memory/addressof.h>
39+ #include < __type_traits/common_type.h>
3940#include < __type_traits/is_convertible.h>
4041#include < __type_traits/is_specialization.h>
4142#include < cstdint>
Original file line number Diff line number Diff line change @@ -232,12 +232,12 @@ _LIBCPP_HIDE_FROM_ABI __time_zone __convert_to_time_zone([[maybe_unused]] const
232232# if _LIBCPP_HAS_EXPERIMENTAL_TZDB
233233 if constexpr (same_as<_Tp, chrono::sys_info>)
234234 return {__value.abbrev , __value.offset };
235+ # if _LIBCPP_HAS_TIME_ZONE_DATABASE && _LIBCPP_HAS_FILESYSTEM
235236 else if constexpr (__is_time_point<_Tp> && requires { requires same_as<typename _Tp::clock, chrono::tai_clock>; })
236237 return {" TAI" , chrono::seconds{0 }};
237- # if _LIBCPP_HAS_TIME_ZONE_DATABASE && _LIBCPP_HAS_FILESYSTEM
238238 else if constexpr (__is_specialization_v<_Tp, chrono::zoned_time>)
239239 return __formatter::__convert_to_time_zone (__value.get_info ());
240- # endif
240+ # endif // _LIBCPP_HAS_TIME_ZONE_DATABASE && _LIBCPP_HAS_FILESYSTEM
241241 else
242242# endif // _LIBCPP_HAS_EXPERIMENTAL_TZDB
243243 return {" UTC" , chrono::seconds{0 }};
Original file line number Diff line number Diff line change 1414// Enable the contents of the header only when libc++ was built with experimental features enabled.
1515#if _LIBCPP_HAS_EXPERIMENTAL_TZDB
1616
17+ # include < __assert>
1718# include < __chrono/duration.h>
1819# include < __chrono/time_point.h>
1920# include < __chrono/utc_clock.h>
You can’t perform that action at this time.
0 commit comments