diff --git a/include/fmt/format.h b/include/fmt/format.h index 3c6b04fda148..df352833e7b6 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<> {};