mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-04 13:14:26 +02:00
Add INSTALL configuration.
This commit is contained in:
12
tz.cpp
12
tz.cpp
@@ -207,8 +207,20 @@ static std::string get_install()
|
|||||||
return install;
|
return install;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef INSTALL
|
||||||
|
|
||||||
static const std::string install = get_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
|
static
|
||||||
std::string
|
std::string
|
||||||
get_download_gz_file(const std::string& version)
|
get_download_gz_file(const std::string& version)
|
||||||
|
Reference in New Issue
Block a user