From ea1717e8ab0c6dd1099720e100e6af18bf320579 Mon Sep 17 00:00:00 2001 From: "Jiangang (Jeff) Zhuang" Date: Tue, 10 Jan 2017 14:04:17 -0500 Subject: [PATCH] Define DATE_API empty when building static lib on Windows --- tz.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tz.h b/tz.h index 6e7a4dd..3585874 100644 --- a/tz.h +++ b/tz.h @@ -100,6 +100,8 @@ 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 # define DATE_API __declspec(dllimport) # endif