diff --git a/src/corelib/global/q20chrono.h b/src/corelib/global/q20chrono.h index 177d307e21..b296b4e966 100644 --- a/src/corelib/global/q20chrono.h +++ b/src/corelib/global/q20chrono.h @@ -38,7 +38,7 @@ using IntRep = int64_t; using IntRep = int; #endif -#if __cpp_lib_chrono >= 201611L && __cplusplus > 201703L +#if __cpp_lib_chrono >= 201907L using std::chrono::days; using std::chrono::weeks; using std::chrono::years; @@ -53,7 +53,7 @@ using days = std::chrono::duration>; using weeks = std::chrono::duration, days::period>>; using years = std::chrono::duration, days::period>>; using months = std::chrono::duration>>; -#endif // __cpp_lib_chrono >= 201611L +#endif // __cpp_lib_chrono >= 201907L } // namespace chrono } // namespace q20