diff --git a/include/fmt/base.h b/include/fmt/base.h index e0baae256347..7de2365cd60b 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -146,6 +146,8 @@ // Use the provided definition. #elif defined(__GNUC__) && !defined(__EXCEPTIONS) # define FMT_USE_EXCEPTIONS 0 +#elif defined(__clang__) && (!defined(__cpp_exceptions) || __cpp_exceptions < 199711L) +# define FMT_USE_EXCEPTIONS 0 #elif FMT_MSC_VERSION && !_HAS_EXCEPTIONS # define FMT_USE_EXCEPTIONS 0 #else