Skip to content

Commit 71536e0

Browse files
committed
CI fixes
1 parent 198180b commit 71536e0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

libcxx/include/__chrono/convert_to_tm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
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>

libcxx/include/__chrono/formatter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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}};

libcxx/include/__chrono/tai_clock.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
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>

0 commit comments

Comments
 (0)