From 137c317cc654f9dc9245aabefca11c5711020c5a Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 6 Aug 2016 14:57:47 -0400 Subject: [PATCH] Add INSTALL configuration. --- tz.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tz.cpp b/tz.cpp index 9fc0d82..fe75e32 100644 --- a/tz.cpp +++ b/tz.cpp @@ -207,8 +207,20 @@ static std::string get_install() return install; } +#ifndef INSTALL + static const std::string install = get_install(); +#else // INSTALL + +#define STRINGIZEIMP(x) #x +#define STRINGIZE(x) STRINGIZEIMP(x) + +static const std::string install = STRINGIZE(INSTALL) + + std::string(1, folder_delimiter) + "tzdata"; + +#endif // INSTALL + static std::string get_download_gz_file(const std::string& version)