diff --git a/include/fmt/format.h b/include/fmt/format.h index 3c6b04fd..df352833 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -759,7 +759,9 @@ template struct FMT_EXTERN_TEMPLATE_API basic_data { static const char right_padding_shifts[5]; }; +#ifndef FMT_EXPORT FMT_EXTERN template struct basic_data; +#endif // This is a struct rather than an alias to avoid shadowing warnings in gcc. struct data : basic_data<> {};