mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-03 20:54:27 +02:00
Give DATE_API a default definition.
This commit is contained in:
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
|
# define USE_SHELL_API 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#ifdef DATE_BUILD_DLL
|
|
||||||
#define DATE_API __declspec(dllexport)
|
|
||||||
#else
|
|
||||||
#define DATE_API __declspec(dllimport)
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "date.h"
|
#include "date.h"
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||||
@@ -106,6 +97,16 @@ static_assert(HAS_REMOTE_API == 0 ? AUTO_DOWNLOAD == 0 : true,
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#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
|
namespace date
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user