fix build with libxml2 version 2.12.0
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Fri, 25 Oct 2024 09:39:48 +0000 (12:39 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 25 Oct 2024 09:39:48 +0000 (12:39 +0300)
Origin: upstream, https://commits.webkit.org/270977@main
Last-Update: 2024-01-22

Gbp-Pq: Name libxml2_2.12.diff

Source/WebCore/xml/XSLTProcessor.h
Source/WebCore/xml/XSLTProcessorLibxslt.cpp

index cffd1c45d55884176b663b478ef7ce122f0abec6..88094c0256b73e72885d7cbf452e4febfc7c996c 100644 (file)
@@ -64,7 +64,11 @@ public:
 
     void reset();
 
+#if LIBXML_VERSION >= 21200
+    static void parseErrorFunc(void* userData, const xmlError*);
+#else
     static void parseErrorFunc(void* userData, xmlError*);
+#endif
     static void genericErrorFunc(void* userData, const char* msg, ...);
     
     // Only for libXSLT callbacks
index 8587b006cdd7cf2d0308935d214135269901d759..bd54afaf6cfa3181fe824601a069a7b1f1a0ded2 100644 (file)
@@ -78,7 +78,11 @@ void XSLTProcessor::genericErrorFunc(void*, const char*, ...)
     // It would be nice to do something with this error message.
 }
 
+#if LIBXML_VERSION >= 21200
+void XSLTProcessor::parseErrorFunc(void* userData, const xmlError* error)
+#else
 void XSLTProcessor::parseErrorFunc(void* userData, xmlError* error)
+#endif
 {
     PageConsoleClient* console = static_cast<PageConsoleClient*>(userData);
     if (!console)