From a909d42b7646cb6aa5105bd2a4a2cc0dba4d557d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 12 Jun 2020 12:45:59 -0700 Subject: [PATCH] Fix a warning --- include/fmt/core.h | 1 + include/fmt/format.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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