From 4de960fa1eddd9b60b203dda3060cf5d3418b0a4 Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Sun, 18 Apr 2021 12:54:59 +0700 Subject: [PATCH] Hide instantiation declarations from msvc --- include/fmt/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index d21c4b6a..4dc3f0e2 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3887,7 +3887,7 @@ extern template int snprintf_float(long double value, int precision, float_specs specs, buffer& buf); -#if !defined(FMT_EXPORTED) || !defined(_MSC_VER) +#ifndef MSC_VER_ extern template FMT_INSTANTIATION_DECL_API const uint64_t basic_data::powers_of_10_64[]; extern template FMT_INSTANTIATION_DECL_API const uint32_t basic_data::zero_or_powers_of_10_32_new[]; extern template FMT_INSTANTIATION_DECL_API const uint64_t basic_data::zero_or_powers_of_10_64_new[]; @@ -3911,7 +3911,7 @@ extern template FMT_INSTANTIATION_DECL_API const char basic_data::signs[]; // DEPRECATED! These are for ABI compatibility. extern template FMT_INSTANTIATION_DECL_API const uint32_t basic_data::zero_or_powers_of_10_32[]; extern template FMT_INSTANTIATION_DECL_API const uint64_t basic_data::zero_or_powers_of_10_64[]; -#endif // #if !defined(FMT_EXPORTED) || !defined(MSC_VER_) +#endif // #ifndef MSC_VER_ } // namespace detail #endif