[webkit-changes] [WebKit/WebKit] 1bad17: Build fails with libxml2 version 2.12.0 due to API...

Adrian Perez noreply at github.com
Mon Nov 20 07:44:06 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1bad176b2496579d760852c80cff3ad9fb7c3a4b
      https://github.com/WebKit/WebKit/commit/1bad176b2496579d760852c80cff3ad9fb7c3a4b
  Author: Adrian Perez de Castro <aperez at igalia.com>
  Date:   2023-11-20 (Mon, 20 Nov 2023)

  Changed paths:
    M Source/WebCore/xml/XSLTProcessor.h
    M Source/WebCore/xml/XSLTProcessorLibxslt.cpp

  Log Message:
  -----------
  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