summaryrefslogtreecommitdiff
path: root/src/utils/xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/xml')
-rw-r--r--src/utils/xml/libxml.h3
-rw-r--r--src/utils/xml/libxml.inc4
-rw-r--r--src/utils/xml/pugixml.h2
3 files changed, 8 insertions, 1 deletions
diff --git a/src/utils/xml/libxml.h b/src/utils/xml/libxml.h
index 49968123e..1f5233ea0 100644
--- a/src/utils/xml/libxml.h
+++ b/src/utils/xml/libxml.h
@@ -25,13 +25,14 @@
#ifdef ENABLE_LIBXML
+#define XML_INCLUDE_DEFINE
+
#include "enums/simpletypes/skiperror.h"
#include "enums/simpletypes/useresman.h"
#include "utils/xml/libxml.inc"
#include <libxml/tree.h>
-#include <libxml/xmlwriter.h>
#include <string>
diff --git a/src/utils/xml/libxml.inc b/src/utils/xml/libxml.inc
index 238eafec9..ea847b88f 100644
--- a/src/utils/xml/libxml.inc
+++ b/src/utils/xml/libxml.inc
@@ -23,6 +23,10 @@
#ifdef ENABLE_LIBXML
+#include <libxml/xmlwriter.h>
+
+__XML_XMLWRITER_H__
+
#define XmlNodePtr xmlNodePtr
#define XmlNodePtrConst xmlNode *const
#define XmlStrEqual(str1, str2) xmlStrEqual(str1, \
diff --git a/src/utils/xml/pugixml.h b/src/utils/xml/pugixml.h
index ed4456bb7..ef7b3e798 100644
--- a/src/utils/xml/pugixml.h
+++ b/src/utils/xml/pugixml.h
@@ -25,6 +25,8 @@
#ifdef ENABLE_PUGIXML
+#define XML_INCLUDE_DEFINE
+
#include "enums/simpletypes/skiperror.h"
#include "enums/simpletypes/useresman.h"