From 9264a21e1e8611f1ff04b94dd8a04af974b54873 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 3 Jul 2017 16:58:33 -0400 Subject: [PATCH] Update Windows build instructions: * DATE_BUILD_LIB * NOMINMAX --- tz.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tz.html b/tz.html index 7b4897f..e007e30 100644 --- a/tz.html +++ b/tz.html @@ -26,7 +26,7 @@

Howard E. Hinnant
-2017-06-04
+2017-07-03

Time Zone Database Parser

@@ -2934,6 +2934,19 @@ http://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml int HAS_REMOTE_API and let AUTO_DOWNLOAD default to 1.

+

+When _WIN32 is defined the library assumes that you are +consuming the library from another DLL and defines #define DATE_API +__declspec(dllimport). If you are including the cpp file directly into +your project you can just define DATE_BUILD_LIB for not using any of +the dllimport/dllexport definitions. +

+ +

+Define NOMINMAX to disable the Windows min and max +macros. +

+

mingw users: -lpthread is required.