From 6bfc51e624f252e8a3646cb9a6f962ed140d5741 Mon Sep 17 00:00:00 2001 From: "M. Galib Uludag" Date: Thu, 25 May 2023 19:05:47 +0000 Subject: [PATCH] fix consteval --- include/spdlog/common.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 7988be70..6ca84711 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -113,8 +113,10 @@ #endif #if SPDLOG_CPLUSPLUS >= 202002L -#if __cpp_consteval >= 202211L -# define SPDLOG_CONSTEVAL consteval +# if __cpp_consteval >= 202211L +# define SPDLOG_CONSTEVAL consteval +# else +# define SPDLOG_CONSTEVAL constexpr # endif #elif SPDLOG_CPLUSPLUS < 201402L # define SPDLOG_CONSTEVAL