Reformulate macros for static and shared linking on windows.

This commit is contained in:
gm
2017-09-05 19:59:57 -04:00
committed by Howard Hinnant
parent 272d487b3d
commit c09d35534d
+3 -3
View File
@@ -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