diff --git a/include/fmt/core.h b/include/fmt/core.h index ad037f8b..790ba42a 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -585,7 +585,7 @@ struct error_handler { constexpr error_handler(const error_handler&) = default; // This function is intentionally not constexpr to give a compile-time error. - FMT_NORETURN FMT_API void on_error(const char* message) { + FMT_NORETURN void on_error(const char* message) { throw_format_error(message); } };