ports/graphics/cegui/files/patch-cegui_src_XMLParserModules_Libxml2_XMLParser.cpp
2024-06-30 01:08:58 +02:00

14 lines
464 B
C++

--- cegui/src/XMLParserModules/Libxml2/XMLParser.cpp.orig 2016-04-23 18:19:40 UTC
+++ cegui/src/XMLParserModules/Libxml2/XMLParser.cpp
@@ -99,7 +99,11 @@ void LibxmlParser::parseXML(XMLHandler& handler,
if (!doc)
{
+#if LIBXML_VERSION >= 21200
+ const xmlError* err = xmlGetLastError();
+#else
xmlError* err = xmlGetLastError();
+#endif
CEGUI_THROW(GenericException(
String("xmlParseMemory failed in file: '") +