Skip to content

Commit

Permalink
It is enough to check for PDAL_HAVE_EXECINFO_H
Browse files Browse the repository at this point in the history
  • Loading branch information
chambbj committed Aug 30, 2017
1 parent d5a3ca7 commit f08213b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions apps/pdal.cpp
Expand Up @@ -354,7 +354,6 @@ int App::execute(StringList& cmdArgs, LogPtr& log)
else if (m_debug)
log->setLevel(LogLevel::Debug);
PluginManager::setLog(log);
#ifndef _WIN32
#ifdef PDAL_HAVE_EXECINFO_H
if (m_debug)
{
Expand All @@ -368,7 +367,6 @@ int App::execute(StringList& cmdArgs, LogPtr& log)
exit(1);
});
}
#endif
#endif

m_command = Utils::tolower(m_command);
Expand Down
2 changes: 0 additions & 2 deletions pdal/util/Utils.cpp
Expand Up @@ -606,7 +606,6 @@ double Utils::normalizeLongitude(double longitude)
std::vector<std::string> Utils::backtrace()
{
std::vector<std::string> lines;
#ifndef WIN32
#ifdef PDAL_HAVE_EXECINFO_H
const int MAX_STACK_SIZE(100);
void* buffer[MAX_STACK_SIZE];
Expand Down Expand Up @@ -659,7 +658,6 @@ std::vector<std::string> Utils::backtrace()
symbol = prefix + symbol;
}
}
#endif
#endif
return lines;
}
Expand Down

0 comments on commit f08213b

Please sign in to comment.