[webkit-changes] [WebKit/WebKit] 209457: Cherry-pick 270977 at main (1bad176b2496). https://bu...
Adrian Perez
noreply at github.com
Tue Nov 21 00:21:55 PST 2023
Branch: refs/heads/webkitglib/2.42
Home: https://github.com/WebKit/WebKit
Commit: 209457c1ef237c520d419e8ca66eefdb7e140db0
https://github.com/WebKit/WebKit/commit/209457c1ef237c520d419e8ca66eefdb7e140db0
Author: Adrian Perez de Castro <aperez at igalia.com>
Date: 2023-11-21 (Tue, 21 Nov 2023)
Changed paths:
M Source/WebCore/xml/XSLTProcessor.h
M Source/WebCore/xml/XSLTProcessorLibxslt.cpp
Log Message:
-----------
Cherry-pick 270977 at main (1bad176b2496). https://bugs.webkit.org/show_bug.cgi?id=265128
Build fails with libxml2 version 2.12.0 due to API change
https://bugs.webkit.org/show_bug.cgi?id=265128
Reviewed by Philippe Normand.
Starting with libxml2 2.12.0, the API has changed the const-ness of the
xmlError pointers, which results in a build error due to a mismatched
type in the parsing error callback. This papers over the difference by
using preprocessor conditionals.
* Source/WebCore/xml/XSLTProcessor.h: Use const when building against
libxml2 2.12.0 or newer.
* Source/WebCore/xml/XSLTProcessorLibxslt.cpp:
(WebCore::XSLTProcessor::parseErrorFunc): Ditto.
Canonical link: https://commits.webkit.org/270977@main
More information about the webkit-changes
mailing list