From 5f4df41c552cb2357ff6fefdbe277b072a4c1c4a Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Fri, 24 Nov 2023 07:54:03 +0100 Subject: [PATCH] fix compilation with libxml 2.12.0 --- src/podofo/main/PdfXMPPacket.cpp | 1 + src/podofo/private/XmlUtils.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/podofo/main/PdfXMPPacket.cpp b/src/podofo/main/PdfXMPPacket.cpp index a295ae60..249d9baa 100644 --- a/src/podofo/main/PdfXMPPacket.cpp +++ b/src/podofo/main/PdfXMPPacket.cpp @@ -8,6 +8,7 @@ #include "PdfXMPPacket.h" #include #include +#include #include using namespace std; diff --git a/src/podofo/private/XmlUtils.h b/src/podofo/private/XmlUtils.h index 2fae02d6..3a311591 100644 --- a/src/podofo/private/XmlUtils.h +++ b/src/podofo/private/XmlUtils.h @@ -8,6 +8,7 @@ #include #include +#include #include // Cast macro that keep or enforce const to use @@ -16,7 +17,7 @@ #define THROW_LIBXML_EXCEPTION(msg)\ {\ - xmlErrorPtr error_ = xmlGetLastError();\ + const xmlError* error_ = xmlGetLastError();\ if (error_ == nullptr)\ PODOFO_RAISE_ERROR_INFO(PdfErrorCode::XmpMetadata, msg);\ else\