From 35c1a81cac2d9213ed62baebc2fa69f890f4f6c1 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Fri, 17 Nov 2023 17:55:45 +0800 Subject: [PATCH] avoid redefine --- include/ylt/easylog.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/ylt/easylog.hpp b/include/ylt/easylog.hpp index 42df82b9d..c564bb2ab 100644 --- a/include/ylt/easylog.hpp +++ b/include/ylt/easylog.hpp @@ -249,9 +249,7 @@ inline void add_appender(std::function fn) { #if __has_include() #define ELOGFMT_IMPL(severity, Id, ...) \ ELOGFMT_IMPL0(severity, Id, fmt, __VA_ARGS__) -#endif - -#if __has_include() +#else #define ELOGFMT_IMPL(severity, Id, ...) \ ELOGFMT_IMPL0(severity, Id, std, __VA_ARGS__) #endif