Skip to content

Commit

Permalink
AHN.Buildings: remove safeguard for Boost version <1.56, as now at le…
Browse files Browse the repository at this point in the history
…ast Boost 1.71 is required.

Introduced in 7c05882.
  • Loading branch information
mcserep committed May 2, 2024
1 parent 45b99dd commit f6575b6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions AHN.Buildings/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
#include <ctime>
#include <chrono>

#ifdef __linux__
#include <cstdlib>
#endif

#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <gdal.h>
Expand All @@ -25,16 +21,6 @@ using namespace AHN::Buildings;

int main(int argc, char* argv[]) try
{
#ifdef __linux__
{
// For Boost verion <1.56 Boost internally tries to construct a std::locale("").
// This call will fail on Linux if the LC_ALL environment variable is not configured (or misconfigured).
const char* lc_all = std::getenv("LC_ALL");
if(!lc_all || !strlen(lc_all))
setenv("LC_ALL", "C", 1);
}
#endif

std::string tileName;
std::string ahn2Surface,
ahn3Surface,
Expand Down

0 comments on commit f6575b6

Please sign in to comment.