From 0555d63014a8659d01875bb71ad6f2d5832a13e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pedro=20Bol=C3=ADvar=20Puente?= Date: Tue, 17 Sep 2024 14:55:57 +0200 Subject: [PATCH] Detect exceptions in a more cross platform manner (clang + gcc) --- lager/config.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lager/config.hpp b/lager/config.hpp index 9ad61974..d4162863 100644 --- a/lager/config.hpp +++ b/lager/config.hpp @@ -21,12 +21,10 @@ #endif #if !defined(LAGER_USE_EXCEPTIONS) && !defined(LAGER_NO_EXCEPTIONS) -#ifdef __has_feature -#if !__has_feature(cxx_exceptions) +#if !__cpp_exceptions #define LAGER_NO_EXCEPTIONS #endif #endif -#endif #ifdef LAGER_NO_EXCEPTIONS #define LAGER_TRY if (true) @@ -43,4 +41,3 @@ #define LAGER_THROW(expr) throw expr #define LAGER_RETHROW throw #endif -