diff --git a/include/fmt/format.h b/include/fmt/format.h index 8e101c45..59c4d913 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -727,7 +727,7 @@ template struct FMT_API basic_data { }; #if FMT_USE_EXTERN_TEMPLATES -extern template struct basic_data; +extern template struct FMT_API basic_data; #endif // This is a struct rather than a typedef to avoid shadowing warnings in gcc.