From db991f4c897f8a13bfb2db6f1b8bc60f39a98e4d Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 13 Dec 2023 07:39:32 +0100 Subject: [PATCH] Fix build with libxml2 2.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit libxml 2.12.0 reorganized headers, resulting in xmlParseFile and xmlIndentTreeOutput no longer being in scope. Let’s add the proper includes containing the symbols. Also sort the touched includes to satisfy clang-format. --- src/gtr-profile-manager.c | 3 ++- src/gtr-utils.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gtr-profile-manager.c b/src/gtr-profile-manager.c index cead98a0..f4f16b56 100644 --- a/src/gtr-profile-manager.c +++ b/src/gtr-profile-manager.c @@ -23,8 +23,9 @@ #include "gtr-profile-manager.h" #include "gtr-profile.h" -#include #include +#include +#include typedef struct { diff --git a/src/gtr-utils.c b/src/gtr-utils.c index 26045de5..8018ea43 100644 --- a/src/gtr-utils.c +++ b/src/gtr-utils.c @@ -36,10 +36,11 @@ #include +#include #include #include #include -#include +#include xmlDocPtr gtr_xml_new_doc (const gchar * name) -- GitLab