33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
Description: fix build with libxml2 version 2.12.0
|
|
Origin: upstream, https://commits.webkit.org/270977@main
|
|
Last-Update: 2024-01-22
|
|
|
|
--- a/Source/WebCore/xml/XSLTProcessor.h
|
|
+++ b/Source/WebCore/xml/XSLTProcessor.h
|
|
@@ -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
|
|
--- a/Source/WebCore/xml/XSLTProcessorLibxslt.cpp
|
|
+++ b/Source/WebCore/xml/XSLTProcessorLibxslt.cpp
|
|
@@ -78,7 +78,11 @@ void XSLTProcessor::genericErrorFunc(voi
|
|
// 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)
|