mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-02 20:24:27 +02:00
Define DATE_API empty when building static lib on Windows
This commit is contained in:
committed by
Howard Hinnant
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
|
||||||
|
Reference in New Issue
Block a user