Give DATE_API a default definition.

This commit is contained in:
Howard Hinnant 2017-01-05 20:24:46 -05:00
parent 4e44539a59
commit e203304afd

19
tz.h
View File

@ -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
{