Wrap the extern template with #ifndef FMT_EXPORTED

This commit is contained in:
denchat 2021-04-13 21:43:03 +07:00 committed by GitHub
parent 087bfe2b31
commit 78d8e015e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<void>;
#endif
// This is a struct rather than an alias to avoid shadowing warnings in gcc.
struct data : basic_data<> {};