From 78d8e015e997e3bef509a1d5140292288776f3ae Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Tue, 13 Apr 2021 21:43:03 +0700 Subject: [PATCH] Wrap the extern template with #ifndef FMT_EXPORTED --- include/fmt/format.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index 32b42dd5..9932e6f1 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -995,7 +995,9 @@ FMT_INLINE uint16_t bsr2log10(int bsr) { return data[bsr]; } +#ifndef FMT_EXPORTED FMT_EXTERN template struct FMT_INSTANTIATION_DECL_API basic_data; +#endif // This is a struct rather than an alias to avoid shadowing warnings in gcc. struct data : basic_data<> {};