diff --git a/include/fmt/core.h b/include/fmt/core.h index 42e47b98..52c812be 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -401,7 +401,7 @@ struct error_handler { FMT_CONSTEXPR error_handler(const error_handler&) {} // This function is intentionally not constexpr to give a compile-time error. - FMT_API FMT_NORETURN void on_error(const char* message); + FMT_NORETURN FMT_API void on_error(const char* message); }; } // namespace internal