diff --git a/lager/config.hpp b/lager/config.hpp index 9ad6197..d416286 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 -