diff --git a/fmt/format.h b/fmt/format.h index f4128df1..1427218b 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -923,7 +923,7 @@ struct IntTraits { TypeSelector::digits <= 32>::Type MainType; }; -#if FMT_HAS_GXX_CXX11 +#if FMT_HAS_CPP_ATTRIBUTE(noreturn) FMT_API [[noreturn]] void report_unknown_type(char code, const char *type); #else FMT_API void report_unknown_type(char code, const char *type);