mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 00:14:07 +08:00
Define DATE_API empty when building static lib on Windows
This commit is contained in:
parent
659cdca5dc
commit
ea1717e8ab
2
tz.h
2
tz.h
@ -100,6 +100,8 @@ static_assert(HAS_REMOTE_API == 0 ? AUTO_DOWNLOAD == 0 : true,
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# ifdef DATE_BUILD_DLL
|
# ifdef DATE_BUILD_DLL
|
||||||
# define DATE_API __declspec(dllexport)
|
# define DATE_API __declspec(dllexport)
|
||||||
|
# elif defined(DATE_BUILD_LIB)
|
||||||
|
# define DATE_API
|
||||||
# else
|
# else
|
||||||
# define DATE_API __declspec(dllimport)
|
# define DATE_API __declspec(dllimport)
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user