From 1a12fbf80ebd2516fa9a969784588fddc2868ddd Mon Sep 17 00:00:00 2001 From: Ihor Dutchak Date: Tue, 11 Oct 2022 21:15:34 +0300 Subject: [PATCH] Fix non-msvc build --- include/fmt/core.h | 2 +- src/format.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 4feb385f..9899f902 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -960,7 +960,7 @@ template class buffer { } }; -#if defined(FMT_MSC_VERSION) +#if FMT_MSC_VERSION # ifdef FMT_EXPORT extern template class buffer; # else diff --git a/src/format.cc b/src/format.cc index 03fc3321..f8e436cc 100644 --- a/src/format.cc +++ b/src/format.cc @@ -22,7 +22,7 @@ template FMT_API auto locale_ref::get() 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