diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/global/q20chrono.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<IntRep, std::ratio<86400>>; using weeks = std::chrono::duration<IntRep, std::ratio_multiply<std::ratio<7>, days::period>>; using years = std::chrono::duration<IntRep, std::ratio_multiply<std::ratio<146097, 400>, days::period>>; using months = std::chrono::duration<IntRep, std::ratio_divide<years::period, std::ratio<12>>>; -#endif // __cpp_lib_chrono >= 201611L +#endif // __cpp_lib_chrono >= 201907L } // namespace chrono } // namespace q20 |