mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Fix linker errors using fmt as shared library in MSVC
This commit is contained in:
committed by
Victor Zverovich
parent
8e10d404db
commit
e90b1da367
@ -405,7 +405,7 @@ struct error_handler {
|
|||||||
FMT_CONSTEXPR error_handler(const error_handler &) {}
|
FMT_CONSTEXPR error_handler(const error_handler &) {}
|
||||||
|
|
||||||
// This function is intentionally not constexpr to give a compile-time error.
|
// This function is intentionally not constexpr to give a compile-time error.
|
||||||
void on_error(const char *message);
|
FMT_API void on_error(const char *message);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Formatting of wide characters and strings into a narrow output is disallowed:
|
// Formatting of wide characters and strings into a narrow output is disallowed:
|
||||||
|
@ -905,7 +905,7 @@ class add_thousands_sep {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <typename Char>
|
template <typename Char>
|
||||||
Char thousands_sep(locale_provider *lp);
|
FMT_API Char thousands_sep(locale_provider *lp);
|
||||||
|
|
||||||
// Formats a decimal unsigned integer value writing into buffer.
|
// Formats a decimal unsigned integer value writing into buffer.
|
||||||
// thousands_sep is a functor that is called after writing each char to
|
// thousands_sep is a functor that is called after writing each char to
|
||||||
|
@ -13,7 +13,7 @@ template struct internal::basic_data<void>;
|
|||||||
|
|
||||||
// Explicit instantiations for char.
|
// Explicit instantiations for char.
|
||||||
|
|
||||||
template char internal::thousands_sep(locale_provider *lp);
|
template FMT_API char internal::thousands_sep(locale_provider *lp);
|
||||||
|
|
||||||
template void basic_fixed_buffer<char>::grow(std::size_t);
|
template void basic_fixed_buffer<char>::grow(std::size_t);
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ template FMT_API int internal::char_traits<char>::format_float(
|
|||||||
|
|
||||||
// Explicit instantiations for wchar_t.
|
// Explicit instantiations for wchar_t.
|
||||||
|
|
||||||
template wchar_t internal::thousands_sep(locale_provider *lp);
|
template FMT_API wchar_t internal::thousands_sep(locale_provider *lp);
|
||||||
|
|
||||||
template void basic_fixed_buffer<wchar_t>::grow(std::size_t);
|
template void basic_fixed_buffer<wchar_t>::grow(std::size_t);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user