diff --git a/fmt/format.cc b/fmt/format.cc index c37c766f..618e6069 100644 --- a/fmt/format.cc +++ b/fmt/format.cc @@ -911,14 +911,14 @@ template void fmt::internal::FixedBuffer::grow(std::size_t); template void fmt::internal::ArgMap::init(const fmt::ArgList &args); -template void fmt::internal::PrintfFormatter::format( +template FMT_API void fmt::internal::PrintfFormatter::format( BasicWriter &writer, CStringRef format); -template int fmt::internal::CharTraits::format_float( +template FMT_API int fmt::internal::CharTraits::format_float( char *buffer, std::size_t size, const char *format, unsigned width, int precision, double value); -template int fmt::internal::CharTraits::format_float( +template FMT_API int fmt::internal::CharTraits::format_float( char *buffer, std::size_t size, const char *format, unsigned width, int precision, long double value); @@ -928,14 +928,14 @@ template void fmt::internal::FixedBuffer::grow(std::size_t); template void fmt::internal::ArgMap::init(const fmt::ArgList &args); -template void fmt::internal::PrintfFormatter::format( +template FMT_API void fmt::internal::PrintfFormatter::format( BasicWriter &writer, WCStringRef format); -template int fmt::internal::CharTraits::format_float( +template FMT_API int fmt::internal::CharTraits::format_float( wchar_t *buffer, std::size_t size, const wchar_t *format, unsigned width, int precision, double value); -template int fmt::internal::CharTraits::format_float( +template int FMT_API fmt::internal::CharTraits::format_float( wchar_t *buffer, std::size_t size, const wchar_t *format, unsigned width, int precision, long double value); diff --git a/fmt/format.h b/fmt/format.h index 76292ab4..49c4598c 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -583,7 +583,7 @@ class FormatError : public std::runtime_error { explicit FormatError(CStringRef message) : std::runtime_error(message.c_str()) {} FormatError(const FormatError &ferr) : std::runtime_error(ferr) {} - ~FormatError() FMT_DTOR_NOEXCEPT; + FMT_API ~FormatError() FMT_DTOR_NOEXCEPT; }; namespace internal { @@ -1380,7 +1380,7 @@ class RuntimeError : public std::runtime_error { protected: RuntimeError() : std::runtime_error("") {} RuntimeError(const RuntimeError &rerr) : std::runtime_error(rerr) {} - ~RuntimeError() FMT_DTOR_NOEXCEPT; + FMT_API ~RuntimeError() FMT_DTOR_NOEXCEPT; }; template @@ -2319,7 +2319,7 @@ inline uint64_t make_type(FMT_GEN15(FMT_ARG_TYPE_DEFAULT)) { */ class SystemError : public internal::RuntimeError { private: - void init(int err_code, CStringRef format_str, ArgList args); + FMT_API void init(int err_code, CStringRef format_str, ArgList args); protected: int error_code_; @@ -2359,7 +2359,7 @@ class SystemError : public internal::RuntimeError { } FMT_VARIADIC_CTOR(SystemError, init, int, CStringRef) - ~SystemError() FMT_DTOR_NOEXCEPT; + FMT_API ~SystemError() FMT_DTOR_NOEXCEPT; int error_code() const { return error_code_; } };