Fix non-msvc build

This commit is contained in:
Ihor Dutchak 2022-10-11 21:15:34 +03:00 committed by GitHub
parent 367b2e2ec7
commit 1a12fbf80e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -960,7 +960,7 @@ template <typename T> class buffer {
}
};
#if defined(FMT_MSC_VERSION)
#if FMT_MSC_VERSION
# ifdef FMT_EXPORT
extern template class buffer<char>;
# else

View File

@ -22,7 +22,7 @@ template FMT_API auto locale_ref::get<std::locale>() const -> std::locale;
// Explicit instantiations for char.
#if defined(FMT_MSC_VERSION)
#if FMT_MSC_VERSION
// ostream does it implicitly, so we need make it explicitly
// otherwise we get ODR violation when {fmt} is built as a shared library
// and fmt/os.h is not included by the user