From 3bd6a64121b959b652265580fbb8c46b9c1c68ba Mon Sep 17 00:00:00 2001 From: vanhofen 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 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/cce09cc440022232f09489249110f0e747dac376 Author: vanhofen Date: 2018-08-30 (Thu, 30 Aug 2018) Origin message was: ------------------ - xmlinterface: fix compiling for CST hardware error was: ‘pugi::xml_parse_status’ is not a class or namespace --- 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;