mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 00:14:07 +08:00
Give DATE_API a default definition.
This commit is contained in:
parent
4e44539a59
commit
e203304afd
19
tz.h
19
tz.h
@ -74,15 +74,6 @@ static_assert(HAS_REMOTE_API == 0 ? AUTO_DOWNLOAD == 0 : true,
|
||||
# define USE_SHELL_API 1
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef DATE_BUILD_DLL
|
||||
#define DATE_API __declspec(dllexport)
|
||||
#else
|
||||
#define DATE_API __declspec(dllimport)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "date.h"
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||
@ -106,6 +97,16 @@ static_assert(HAS_REMOTE_API == 0 ? AUTO_DOWNLOAD == 0 : true,
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#ifdef _WIN32
|
||||
# ifdef DATE_BUILD_DLL
|
||||
# define DATE_API __declspec(dllexport)
|
||||
# else
|
||||
# define DATE_API __declspec(dllimport)
|
||||
# endif
|
||||
#else
|
||||
# define DATE_API
|
||||
#endif
|
||||
|
||||
namespace date
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user