From c482b6de636bd8e0d96b17d155c9999f40c8d2e7 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 30 Aug 2018 23:57:06 +0200 Subject: [PATCH] - xmlinterface: fix compiling for CST hardware MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error was: ‘pugi::xml_parse_status’ is not a class or namespace Signed-off-by: Thilo Graf --- lib/xmltree/xmlinterface.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/xmltree/xmlinterface.cpp b/lib/xmltree/xmlinterface.cpp index 260ba4783..da7213806 100644 --- a/lib/xmltree/xmlinterface.cpp +++ b/lib/xmltree/xmlinterface.cpp @@ -40,8 +40,10 @@ #include #include #include -#else /* USE_LIBXML */ +#elif (defined( USE_PUGIXML ) ) #include "gzstream.h" +#include +#else /* USE_LIBXML */ #include "xmltok.h" #endif /* USE_LIBXML */ #include @@ -315,7 +317,7 @@ xmlDocPtr parseXmlFile(const char * filename, bool,const char* encoding) gzclose(xmlgz_file); const pugi::xml_parse_result result = tree_parser->load_buffer_inplace_own(buffer,gzsize, pugi::parse_default, enc); - if (result.status != pugi::xml_parse_status::status_ok) + if (result.status != 0 /*pugi::xml_parse_status::status_ok*/) { printf("Error: Loading %s (%d)\n", filename, result.status); delete tree_parser;