mirror of
https://github.com/fmtlib/fmt.git
synced 2026-06-11 11:41:19 +02:00
Fix clang warning about ignoring __declspec(dllexport) on basic_data<void> template instantitation definition (#2220)
This commit is contained in:
+2
-2
@@ -223,8 +223,8 @@
|
||||
#ifndef FMT_EXTERN_TEMPLATE_API
|
||||
# define FMT_EXTERN_TEMPLATE_API
|
||||
#endif
|
||||
#ifndef FMT_INSTANTIATION_DEF_API
|
||||
# define FMT_INSTANTIATION_DEF_API FMT_API
|
||||
#ifndef FMT_INSTANTIATION_DECL_API
|
||||
# define FMT_INSTANTIATION_DECL_API FMT_API
|
||||
#endif
|
||||
|
||||
#ifndef FMT_HEADER_ONLY
|
||||
|
||||
@@ -995,9 +995,7 @@ FMT_INLINE uint16_t bsr2log10(int bsr) {
|
||||
return data[bsr];
|
||||
}
|
||||
|
||||
#ifndef FMT_EXPORTED
|
||||
FMT_EXTERN template struct basic_data<void>;
|
||||
#endif
|
||||
FMT_EXTERN template struct FMT_INSTANTIATION_DECL_API basic_data<void>;
|
||||
|
||||
// This is a struct rather than an alias to avoid shadowing warnings in gcc.
|
||||
struct data : basic_data<> {};
|
||||
|
||||
Reference in New Issue
Block a user