D61118 : mark dllexport on extern template only

D61118 : make dllexport on extern template, not the instantiation definition in format.cc

[MinGW] Fix dllexport of explicit template instantiation
https://reviews.llvm.org/D61118
This commit is contained in:
denchat 2021-04-12 11:53:59 +07:00 committed by GitHub
parent c91cb64e27
commit 66f6f54b5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -995,9 +995,7 @@ FMT_INLINE uint16_t bsr2log10(int bsr) {
return data[bsr]; return data[bsr];
} }
#ifndef FMT_EXPORTED FMT_EXTERN template struct FMT_INSTANTIATION_DEF_API basic_data<void>;
FMT_EXTERN template struct basic_data<void>;
#endif
// This is a struct rather than an alias to avoid shadowing warnings in gcc. // This is a struct rather than an alias to avoid shadowing warnings in gcc.
struct data : basic_data<> {}; struct data : basic_data<> {};