Fix non-msvc build
This commit is contained in:
parent
367b2e2ec7
commit
1a12fbf80e
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user