From f5ca0fcf6ad3e0702c77002436a93f3213c394dd Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Thu, 3 Feb 2022 23:04:51 +0100 Subject: [PATCH] Update Duration.h --- src/common/Utilities/Duration.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/Utilities/Duration.h b/src/common/Utilities/Duration.h index 6fcfbf6644..1486372bcd 100644 --- a/src/common/Utilities/Duration.h +++ b/src/common/Utilities/Duration.h @@ -49,7 +49,7 @@ using Years = std::chrono::years; using Months = std::chrono::months; // Fix GCC for C++20 -#if GCC_VERSION +#if AC_COMPILER == AC_COMPILER_GNU /// days using Days = std::chrono::duration<_GLIBCXX_CHRONO_INT64_T, ratio<86400>>; @@ -62,7 +62,7 @@ using Years = std::chrono::duration<_GLIBCXX_CHRONO_INT64_T, ratio<31556952>>; /// months using Months = std::chrono::duration<_GLIBCXX_CHRONO_INT64_T, ratio<2629746>>; -#endif // GCC_VERSION +#endif // AC_COMPILER_GNU #else /// Days shorthand typedef. (delete after start support c++20)