From 70258cbe2743e4395cdd853c726675da4b768ee9 Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Fri, 9 Apr 2021 02:23:33 +0700 Subject: [PATCH] Move FMT_INSTANTIATION_DEF_API deletion into WIN32 --- include/fmt/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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