@@ -143,7 +143,7 @@ __format_sub_seconds(basic_stringstream<_CharT>& __sstr, const chrono::hh_mm_ss<
143
143
__value.fractional_width );
144
144
}
145
145
146
- # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB) && _LIBCPP_HAS_TIME_ZONE_DATABASE && _LIBCPP_HAS_FILESYSTEM
146
+ # if _LIBCPP_HAS_EXPERIMENTAL_TZDB && _LIBCPP_HAS_TIME_ZONE_DATABASE && _LIBCPP_HAS_FILESYSTEM
147
147
template <class _CharT , class _Duration , class _TimeZonePtr >
148
148
_LIBCPP_HIDE_FROM_ABI void
149
149
__format_sub_seconds (basic_stringstream<_CharT>& __sstr, const chrono::zoned_time<_Duration, _TimeZonePtr>& __value) {
@@ -155,7 +155,7 @@ template <class _Tp>
155
155
consteval bool __use_fraction () {
156
156
if constexpr (__is_time_point<_Tp>)
157
157
return chrono::hh_mm_ss<typename _Tp::duration>::fractional_width;
158
- # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB) && _LIBCPP_HAS_TIME_ZONE_DATABASE && _LIBCPP_HAS_FILESYSTEM
158
+ # if _LIBCPP_HAS_EXPERIMENTAL_TZDB && _LIBCPP_HAS_TIME_ZONE_DATABASE && _LIBCPP_HAS_FILESYSTEM
159
159
else if constexpr (__is_specialization_v<_Tp, chrono::zoned_time>)
160
160
return chrono::hh_mm_ss<typename _Tp::duration>::fractional_width;
161
161
# endif
@@ -227,15 +227,15 @@ struct _LIBCPP_HIDE_FROM_ABI __time_zone {
227
227
228
228
template <class _Tp >
229
229
_LIBCPP_HIDE_FROM_ABI __time_zone __convert_to_time_zone ([[maybe_unused]] const _Tp& __value) {
230
- # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
230
+ # if _LIBCPP_HAS_EXPERIMENTAL_TZDB
231
231
if constexpr (same_as<_Tp, chrono::sys_info>)
232
232
return {__value.abbrev , __value.offset };
233
233
# if _LIBCPP_HAS_TIME_ZONE_DATABASE && _LIBCPP_HAS_FILESYSTEM
234
234
else if constexpr (__is_specialization_v<_Tp, chrono::zoned_time>)
235
235
return __formatter::__convert_to_time_zone (__value.get_info ());
236
236
# endif
237
237
else
238
- # endif // !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
238
+ # endif // _LIBCPP_HAS_EXPERIMENTAL_TZDB
239
239
return {" UTC" , chrono::seconds{0 }};
240
240
}
241
241
@@ -443,7 +443,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool __weekday_ok(const _Tp& __value) {
443
443
return __value.weekday ().ok ();
444
444
else if constexpr (__is_hh_mm_ss<_Tp>)
445
445
return true ;
446
- # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
446
+ # if _LIBCPP_HAS_EXPERIMENTAL_TZDB
447
447
else if constexpr (same_as<_Tp, chrono::sys_info>)
448
448
return true ;
449
449
else if constexpr (same_as<_Tp, chrono::local_info>)
@@ -452,7 +452,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool __weekday_ok(const _Tp& __value) {
452
452
else if constexpr (__is_specialization_v<_Tp, chrono::zoned_time>)
453
453
return true ;
454
454
# endif
455
- # endif // !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
455
+ # endif // _LIBCPP_HAS_EXPERIMENTAL_TZDB
456
456
else
457
457
static_assert (sizeof (_Tp) == 0 , " Add the missing type specialization" );
458
458
}
@@ -493,7 +493,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool __weekday_name_ok(const _Tp& __value) {
493
493
return __value.weekday ().ok ();
494
494
else if constexpr (__is_hh_mm_ss<_Tp>)
495
495
return true ;
496
- # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
496
+ # if _LIBCPP_HAS_EXPERIMENTAL_TZDB
497
497
else if constexpr (same_as<_Tp, chrono::sys_info>)
498
498
return true ;
499
499
else if constexpr (same_as<_Tp, chrono::local_info>)
@@ -502,7 +502,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool __weekday_name_ok(const _Tp& __value) {
502
502
else if constexpr (__is_specialization_v<_Tp, chrono::zoned_time>)
503
503
return true ;
504
504
# endif
505
- # endif // !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
505
+ # endif // _LIBCPP_HAS_EXPERIMENTAL_TZDB
506
506
else
507
507
static_assert (sizeof (_Tp) == 0 , " Add the missing type specialization" );
508
508
}
@@ -543,7 +543,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool __date_ok(const _Tp& __value) {
543
543
return __value.ok ();
544
544
else if constexpr (__is_hh_mm_ss<_Tp>)
545
545
return true ;
546
- # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
546
+ # if _LIBCPP_HAS_EXPERIMENTAL_TZDB
547
547
else if constexpr (same_as<_Tp, chrono::sys_info>)
548
548
return true ;
549
549
else if constexpr (same_as<_Tp, chrono::local_info>)
@@ -552,7 +552,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool __date_ok(const _Tp& __value) {
552
552
else if constexpr (__is_specialization_v<_Tp, chrono::zoned_time>)
553
553
return true ;
554
554
# endif
555
- # endif // !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
555
+ # endif // _LIBCPP_HAS_EXPERIMENTAL_TZDB
556
556
else
557
557
static_assert (sizeof (_Tp) == 0 , " Add the missing type specialization" );
558
558
}
@@ -593,7 +593,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool __month_name_ok(const _Tp& __value) {
593
593
return __value.month ().ok ();
594
594
else if constexpr (__is_hh_mm_ss<_Tp>)
595
595
return true ;
596
- # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
596
+ # if _LIBCPP_HAS_EXPERIMENTAL_TZDB
597
597
else if constexpr (same_as<_Tp, chrono::sys_info>)
598
598
return true ;
599
599
else if constexpr (same_as<_Tp, chrono::local_info>)
@@ -602,7 +602,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool __month_name_ok(const _Tp& __value) {
602
602
else if constexpr (__is_specialization_v<_Tp, chrono::zoned_time>)
603
603
return true ;
604
604
# endif
605
- # endif // !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
605
+ # endif // _LIBCPP_HAS_EXPERIMENTAL_TZDB
606
606
else
607
607
static_assert (sizeof (_Tp) == 0 , " Add the missing type specialization" );
608
608
}
@@ -940,7 +940,7 @@ struct formatter<chrono::hh_mm_ss<_Duration>, _CharT> : public __formatter_chron
940
940
}
941
941
};
942
942
943
- # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
943
+ # if _LIBCPP_HAS_EXPERIMENTAL_TZDB
944
944
template <__fmt_char_type _CharT>
945
945
struct formatter <chrono::sys_info, _CharT> : public __formatter_chrono<_CharT> {
946
946
public:
@@ -976,7 +976,7 @@ struct formatter<chrono::zoned_time<_Duration, _TimeZonePtr>, _CharT> : public _
976
976
}
977
977
};
978
978
# endif // _LIBCPP_HAS_TIME_ZONE_DATABASE && _LIBCPP_HAS_FILESYSTEM
979
- # endif // !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB)
979
+ # endif // _LIBCPP_HAS_EXPERIMENTAL_TZDB
980
980
981
981
# endif // if _LIBCPP_STD_VER >= 20
982
982
0 commit comments