forked from HowardHinnant/date
Only define get_windows_zones_install() under TIMEZONE_MAPPING
This commit is contained in:
31
tz.cpp
31
tz.cpp
@@ -261,22 +261,6 @@ get_download_gz_file(const std::string& version)
|
|||||||
return file;
|
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
|
// These can be used to reduce the range of the database to save memory
|
||||||
CONSTDATA auto min_year = date::year::min();
|
CONSTDATA auto min_year = date::year::min();
|
||||||
CONSTDATA auto max_year = date::year::max();
|
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.
|
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
|
// A simple type to manage RAII for key handles and to
|
||||||
// implement the trivial registry interface we need.
|
// implement the trivial registry interface we need.
|
||||||
// Not intended to be general-purpose.
|
// Not intended to be general-purpose.
|
||||||
|
Reference in New Issue
Block a user