Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 270977@main (1bad176). https://bugs.webkit.org/show_bug.c…
…gi?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
- Loading branch information