Avoid undefined symbols with mingw-w64 (#2692)

Fixes issue #2691
This commit is contained in:
Richard Berger 2022-01-03 18:29:29 -05:00 committed by GitHub
parent 1b193e7b37
commit fc1783fcc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1082,7 +1082,7 @@ template <typename OutputIt, typename Char> class tm_writer {
}
template <typename T, FMT_ENABLE_IF(!has_member_data_tm_gmtoff<T>::value)>
void format_utc_offset_impl(const T& tm) {
#if defined(_WIN32)
#if defined(_WIN32) && defined(_UCRT)
# if FMT_USE_TZSET
tzset_once();
# endif