Define DATE_API empty when building static lib on Windows

This commit is contained in:
Jiangang (Jeff) Zhuang 2017-01-10 14:04:17 -05:00 committed by Howard Hinnant
parent 659cdca5dc
commit ea1717e8ab

2
tz.h
View File

@ -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