Skip to content

Commit

Permalink
require MSC version 1933 for utc_clock
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickroocks committed Sep 27, 2022
1 parent 2d14534 commit bcfd937
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ FMT_BEGIN_NAMESPACE
// Check if std::chrono::utc_timestamp is available.
#ifndef FMT_USE_UTC_TIME
# ifdef __cpp_lib_chrono
# define FMT_USE_UTC_TIME (__cpp_lib_chrono >= 201907L)
# define FMT_USE_UTC_TIME \
(__cpp_lib_chrono >= 201907L) && \
(FMT_MSC_VERSION >= 1933 || FMT_MSC_VERSION == 0)
# else
# define FMT_USE_UTC_TIME 0
# endif
Expand Down

0 comments on commit bcfd937

Please sign in to comment.