Fix linker errors using fmt as shared library in MSVC

This commit is contained in:
Sebastian König
2018-03-28 18:33:49 +02:00
committed by Victor Zverovich
parent 8e10d404db
commit e90b1da367
3 changed files with 4 additions and 4 deletions

View File

@@ -405,7 +405,7 @@ struct error_handler {
FMT_CONSTEXPR error_handler(const error_handler &) {}
// 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:

View File

@@ -905,7 +905,7 @@ class add_thousands_sep {
};
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.
// thousands_sep is a functor that is called after writing each char to