diff --git a/include/fmt/core.h b/include/fmt/core.h index f1ab240f..77b8c6fd 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -201,6 +201,7 @@ # ifdef FMT_EXPORT # define FMT_API __declspec(dllexport) # define FMT_EXTERN_TEMPLATE_API FMT_API +# define FMT_EXPORTED # elif defined(FMT_SHARED) # define FMT_API __declspec(dllimport) # define FMT_EXTERN_TEMPLATE_API FMT_API diff --git a/include/fmt/format.h b/include/fmt/format.h index 1c45a867..b377990b 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -763,7 +763,7 @@ template struct FMT_EXTERN_TEMPLATE_API basic_data { static const char right_padding_shifts[5]; }; -#ifndef FMT_EXPORT +#ifndef FMT_EXPORTED FMT_EXTERN template struct basic_data; #endif