Skip to content

Commit

Permalink
#ifdef libxml2 stuff for when we don't have it
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Nov 7, 2013
1 parent a2e174b commit 0ae9cc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/pdal/XMLSchema.hpp
Expand Up @@ -153,12 +153,13 @@ class PDAL_DLL Reader

Reader& operator=(const Reader&); // not implemented
Reader(const Reader&); // not implemented;

#ifdef PDAL_HAVE_LIBXML2
pdal::Metadata LoadMetadata(xmlNode* node);


std::string remapOldNames(std::string const& input);

#ifdef PDAL_HAVE_LIBXML2
DocPtr m_doc;
DocPtr m_schema_doc;

Expand Down
4 changes: 2 additions & 2 deletions src/XMLSchema.cpp
Expand Up @@ -404,12 +404,12 @@ std::string Reader::remapOldNames(std::string const& input)
return input;
}

#ifdef PDAL_HAVE_LIBXML2
pdal::Metadata Reader::LoadMetadata(xmlNode* startNode)
{

pdal::Metadata output;

#ifdef PDAL_HAVE_LIBXML2

xmlNode* node = startNode;

Expand Down Expand Up @@ -461,9 +461,9 @@ pdal::Metadata Reader::LoadMetadata(xmlNode* startNode)
else
node = node->next;
}
#endif
return output;
}
#endif

void Reader::Load()
{
Expand Down

0 comments on commit 0ae9cc3

Please sign in to comment.