Skip to content

Commit fc1783f

Browse files
authored
Avoid undefined symbols with mingw-w64 (#2692)
Fixes issue #2691
1 parent 1b193e7 commit fc1783f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fmt/chrono.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ template <typename OutputIt, typename Char> class tm_writer {
10821082
}
10831083
template <typename T, FMT_ENABLE_IF(!has_member_data_tm_gmtoff<T>::value)>
10841084
void format_utc_offset_impl(const T& tm) {
1085-
#if defined(_WIN32)
1085+
#if defined(_WIN32) && defined(_UCRT)
10861086
# if FMT_USE_TZSET
10871087
tzset_once();
10881088
# endif

0 commit comments

Comments
 (0)