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<> {};