summaryrefslogtreecommitdiff
path: root/src/utils/xml/tinyxml2.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-11-04 19:25:32 +0300
committerAndrei Karas <akaras@inbox.ru>2017-11-04 19:25:32 +0300
commitc3bf414ad5d80a1ffcae0f19357753f0ef26a00f (patch)
tree209d16edf5ee2fedd6be31040d02b63cd2adc6f9 /src/utils/xml/tinyxml2.cpp
parent26459f06e92ba611a61d4dcaf9df1992f6de5e4d (diff)
downloadmanaverse-c3bf414ad5d80a1ffcae0f19357753f0ef26a00f.tar.gz
manaverse-c3bf414ad5d80a1ffcae0f19357753f0ef26a00f.tar.bz2
manaverse-c3bf414ad5d80a1ffcae0f19357753f0ef26a00f.tar.xz
manaverse-c3bf414ad5d80a1ffcae0f19357753f0ef26a00f.zip
Add workaround for fix compilation with tinyxml2 from master branch.s20171107
In tinyxml2 was unversioned api breakage in master branch.
Diffstat (limited to 'src/utils/xml/tinyxml2.cpp')
-rw-r--r--src/utils/xml/tinyxml2.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/xml/tinyxml2.cpp b/src/utils/xml/tinyxml2.cpp
index a7275b7f1..913e0e953 100644
--- a/src/utils/xml/tinyxml2.cpp
+++ b/src/utils/xml/tinyxml2.cpp
@@ -44,10 +44,17 @@ namespace XML
{
static void showErrorStatus(tinyxml2::XMLDocument &doc)
{
+#ifdef USE_TINYXML_OLD
logger->log("xml error: %s, in lines: %s\n%s",
doc.ErrorName(),
doc.GetErrorStr1(),
doc.GetErrorStr2());
+#else // USE_TINYXML_OLD
+
+ logger->log("xml error: %s, in lines: %s",
+ doc.ErrorName(),
+ doc.ErrorStr());
+#endif // USE_TINYXML_OLD
}
Document::Document(const std::string &filename,