diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 31fee070afd9..908999ab5f5d 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -1082,7 +1082,7 @@ template class tm_writer { } template ::value)> void format_utc_offset_impl(const T& tm) { -#if defined(_WIN32) +#if defined(_WIN32) && defined(_UCRT) # if FMT_USE_TZSET tzset_once(); # endif