Control: tags -1 patch

Dear maintainers,

please find attached a patch that fixes compilation with GCC-13 and -14. I'll 
also submit it as MR in the repository.

The latest upstream release supports GCC-13, so forwarding is not needed.

Cheers,
  Joachim


From: Joachim Bauch <ba...@struktur.de>
Date: Tue, 13 Aug 2024 23:27:55 +0200
Subject: Add missing "cstdint" includes to get various uint*_t types.

This fixes ftbfs with gcc-14.

Forwarded: not-needed

Index: medialibrary-0.12.3/include/medialibrary/IMetadata.h
===================================================================
--- medialibrary-0.12.3.orig/include/medialibrary/IMetadata.h
+++ medialibrary-0.12.3/include/medialibrary/IMetadata.h
@@ -22,6 +22,7 @@

 #pragma once

+#include <cstdint>
 #include <string>

 namespace medialibrary
Index: medialibrary-0.12.3/include/medialibrary/filesystem/IFile.h
===================================================================
--- medialibrary-0.12.3.orig/include/medialibrary/filesystem/IFile.h
+++ medialibrary-0.12.3/include/medialibrary/filesystem/IFile.h
@@ -22,6 +22,7 @@

 #pragma once

+#include <cstdint>
 #include <string>

 namespace medialibrary
Index: medialibrary-0.12.3/src/Deprecated.h
===================================================================
--- medialibrary-0.12.3.orig/src/Deprecated.h
+++ medialibrary-0.12.3/src/Deprecated.h
@@ -27,6 +27,7 @@
  * or old migration code
  */

+#include <cstdint>
 #include <string>

 namespace medialibrary
Index: medialibrary-0.12.3/src/utils/File.h
===================================================================
--- medialibrary-0.12.3.orig/src/utils/File.h
+++ medialibrary-0.12.3/src/utils/File.h
@@ -22,6 +22,7 @@

 #pragma once

+#include <cstdint>
 #include <string>

 namespace medialibrary
Index: medialibrary-0.12.3/src/utils/Strings.cpp
===================================================================
--- medialibrary-0.12.3.orig/src/utils/Strings.cpp
+++ medialibrary-0.12.3/src/utils/Strings.cpp
@@ -29,6 +29,7 @@
 #include <algorithm>
 #include <cctype>
 #include <cassert>
+#include <cstdint>

 namespace medialibrary
 {
Index: medialibrary-0.12.3/src/utils/TitleAnalyzer.h
===================================================================
--- medialibrary-0.12.3.orig/src/utils/TitleAnalyzer.h
+++ medialibrary-0.12.3/src/utils/TitleAnalyzer.h
@@ -22,6 +22,7 @@

 #pragma once

+#include <cstdint>
 #include <string>
 #include <tuple>

Index: medialibrary-0.12.3/src/utils/Url.cpp
===================================================================
--- medialibrary-0.12.3.orig/src/utils/Url.cpp
+++ medialibrary-0.12.3/src/utils/Url.cpp
@@ -29,6 +29,7 @@
 #include "medialibrary/filesystem/Errors.h"

 #include <stdexcept>
+#include <cstdint>
 #include <cstring>
 #include <algorithm>
 #include <iterator>
Index: medialibrary-0.12.3/src/utils/XxHasher.h
===================================================================
--- medialibrary-0.12.3.orig/src/utils/XxHasher.h
+++ medialibrary-0.12.3/src/utils/XxHasher.h
@@ -23,6 +23,7 @@
 #pragma once

 #include <string>
+#include <cstdint>
 #include <cstddef>

 namespace medialibrary

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to