diff --git a/include/fmt/core.h b/include/fmt/core.h index 0d51998f..2008e64e 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -206,6 +206,7 @@ #if !defined(FMT_HEADER_ONLY) && defined(_WIN32) # define FMT_CLASS_API FMT_MSC_WARNING(suppress : 4275) +# define FMT_INSTANTIATION_DEF_API # ifdef FMT_EXPORT # define FMT_API __declspec(dllexport) # define FMT_EXTERN_TEMPLATE_API FMT_API @@ -224,7 +225,7 @@ # define FMT_EXTERN_TEMPLATE_API #endif #ifndef FMT_INSTANTIATION_DEF_API -# define FMT_INSTANTIATION_DEF_API +# define FMT_INSTANTIATION_DEF_API FMT_API #endif #ifndef FMT_HEADER_ONLY