summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/dumplibs.cpp5
-rw-r--r--src/utils/xml/pugixmlwriter.h2
-rw-r--r--src/utils/xml_unittest.cc3
3 files changed, 9 insertions, 1 deletions
diff --git a/src/utils/dumplibs.cpp b/src/utils/dumplibs.cpp
index 4efd647d8..8fb7036bf 100644
--- a/src/utils/dumplibs.cpp
+++ b/src/utils/dumplibs.cpp
@@ -39,7 +39,9 @@ PRAGMA45(GCC diagnostic pop)
#include <curl/curl.h>
+#ifdef ENABLE_LIBXML
#include <libxml/xmlversion.h>
+#endif // ENABLE_LIBXML
#include "debug.h"
@@ -109,7 +111,10 @@ void dumpLibs()
{
logger->log("Compiled with:");
logger->log(" zLib: %s", ZLIB_VERSION);
+#ifdef ENABLE_LIBXML
logger->log(" libxml2: %s", LIBXML_DOTTED_VERSION);
+#endif // ENABLE_LIBXML
+
logger->log(" libcurl: %s", LIBCURL_VERSION);
logger->log(" libpng: %s", PNG_LIBPNG_VER_STRING);
PHYSFS_Version physfsVersion;
diff --git a/src/utils/xml/pugixmlwriter.h b/src/utils/xml/pugixmlwriter.h
index a5952de8b..3d6712992 100644
--- a/src/utils/xml/pugixmlwriter.h
+++ b/src/utils/xml/pugixmlwriter.h
@@ -26,7 +26,7 @@
#include "enums/simpletypes/skiperror.h"
#include "enums/simpletypes/useresman.h"
-#include "utils/xml/pugixml.inc"
+#include "utils/xml/pugixml.h"
#include <pugixml.hpp>
diff --git a/src/utils/xml_unittest.cc b/src/utils/xml_unittest.cc
index 40876e0d2..b7461b617 100644
--- a/src/utils/xml_unittest.cc
+++ b/src/utils/xml_unittest.cc
@@ -30,6 +30,9 @@
#include "utils/delete2.h"
#include "utils/env.h"
#include "utils/physfstools.h"
+#ifdef ENABLE_PUGIXML
+#include "utils/xmlwriter.h"
+#endif // ENABLE_PUGIXML
#include "render/sdlgraphics.h"