forked from HowardHinnant/date
Reformulate macros for static and shared linking on windows.
This commit is contained in:
6
tz.h
6
tz.h
@@ -128,10 +128,10 @@ 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)
|
# elif defined(DATE_USE_DLL)
|
||||||
# define DATE_API
|
|
||||||
# else
|
|
||||||
# define DATE_API __declspec(dllimport)
|
# define DATE_API __declspec(dllimport)
|
||||||
|
# else
|
||||||
|
# define DATE_API
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define DATE_API
|
# define DATE_API
|
||||||
|
Reference in New Issue
Block a user