From c09d35534dcbae28a0d105f52c29349d7b436228 Mon Sep 17 00:00:00 2001 From: gm Date: Sun, 3 Sep 2017 15:33:25 +1200 Subject: [PATCH] Reformulate macros for static and shared linking on windows. --- tz.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tz.h b/tz.h index d3c2a99..97b6c60 100644 --- a/tz.h +++ b/tz.h @@ -128,10 +128,10 @@ static_assert(HAS_REMOTE_API == 0 ? AUTO_DOWNLOAD == 0 : true, #ifdef _WIN32 # ifdef DATE_BUILD_DLL # define DATE_API __declspec(dllexport) -# elif defined(DATE_BUILD_LIB) -# define DATE_API -# else +# elif defined(DATE_USE_DLL) # define DATE_API __declspec(dllimport) +# else +# define DATE_API # endif #else # define DATE_API