Skip to content

Commit

Permalink
fix compilation with libxml 2.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 authored and ceztko committed Nov 28, 2023
1 parent a97f6c3 commit 5f4df41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/podofo/main/PdfXMPPacket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "PdfXMPPacket.h"
#include <podofo/private/XmlUtils.h>
#include <libxml/xmlsave.h>
#include <libxml/parser.h>
#include <podofo/private/XMPUtils.h>

using namespace std;
Expand Down
3 changes: 2 additions & 1 deletion src/podofo/private/XmlUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <string>
#include <libxml/tree.h>
#include <libxml/xmlerror.h>
#include <podofo/auxiliary/nullable.h>

// Cast macro that keep or enforce const to use
Expand All @@ -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\
Expand Down

0 comments on commit 5f4df41

Please sign in to comment.