Fix ABI compatiblity issue

This commit is contained in:
Victor Zverovich
2022-01-05 08:08:38 -08:00
parent 214cf13f17
commit 98cbb6a43c
2 changed files with 7 additions and 2 deletions
+1 -2
View File
@@ -615,8 +615,7 @@ struct error_handler {
constexpr error_handler(const error_handler&) = default;
// This function is intentionally not constexpr to give a compile-time error.
// This function is marked as FMT_API for backwards compatibility, see #2695.
FMT_NORETURN FMT_API void on_error(const char* message) { throw_format_error(message); }
FMT_NORETURN FMT_API void on_error(const char* message);
};
FMT_END_DETAIL_NAMESPACE