mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-26 16:01:04 +08:00
Only define get_windows_zones_install() under TIMEZONE_MAPPING
This commit is contained in:
parent
634b84eb60
commit
659cdca5dc
31
tz.cpp
31
tz.cpp
@ -261,22 +261,6 @@ get_download_gz_file(const std::string& version)
|
||||
return file;
|
||||
}
|
||||
|
||||
static
|
||||
const std::string&
|
||||
get_windows_zones_install()
|
||||
{
|
||||
static const std::string install
|
||||
#ifndef WINDOWSZONES_INSTALL
|
||||
= get_install();
|
||||
#else
|
||||
# define STRINGIZEIMP(x) #x
|
||||
# define STRINGIZE(x) STRINGIZEIMP(x)
|
||||
= STRINGIZE(WINDOWSZONES_INSTALL);
|
||||
#endif
|
||||
std::cout << install << std::endl;
|
||||
return install;
|
||||
}
|
||||
|
||||
// These can be used to reduce the range of the database to save memory
|
||||
CONSTDATA auto min_year = date::year::min();
|
||||
CONSTDATA auto max_year = date::year::max();
|
||||
@ -302,6 +286,21 @@ static_assert(min_year <= max_year, "Configuration error");
|
||||
namespace // Put types in an anonymous name space.
|
||||
{
|
||||
|
||||
const std::string&
|
||||
get_windows_zones_install()
|
||||
{
|
||||
static const std::string install
|
||||
#ifndef WINDOWSZONES_INSTALL
|
||||
= get_install();
|
||||
#else
|
||||
# define STRINGIZEIMP(x) #x
|
||||
# define STRINGIZE(x) STRINGIZEIMP(x)
|
||||
= STRINGIZE(WINDOWSZONES_INSTALL);
|
||||
#endif
|
||||
std::cout << install << std::endl;
|
||||
return install;
|
||||
}
|
||||
|
||||
// A simple type to manage RAII for key handles and to
|
||||
// implement the trivial registry interface we need.
|
||||
// Not intended to be general-purpose.
|
||||
|
Loading…
x
Reference in New Issue
Block a user