Check existence of chrono version flag

This commit is contained in:
Richard Kellnberger 2023-10-07 18:10:02 +02:00
parent 347cb8b85f
commit 4d5bb5c7bb

View File

@ -456,7 +456,7 @@ TEST(chrono_test, format_default) {
fmt::format("{}", std::chrono::duration<int, std::exa>(42)));
EXPECT_EQ("42min", fmt::format("{}", std::chrono::minutes(42)));
EXPECT_EQ("42h", fmt::format("{}", std::chrono::hours(42)));
# if __cpp_lib_chrono >= 201907L
# if defined(__cpp_lib_chrono) && __cpp_lib_chrono >= 201907L
EXPECT_EQ("42d", fmt::format("{}", std::chrono::days(42)));
# endif
EXPECT_EQ(