From e2adb33f6cb05fb424175633c56ff43cc24a7adf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 9 May 2024 14:04:03 +0200 Subject: Fix build after gcc update (function pointer cast, missing algorithm header include) --- depends/mglpp | 2 +- src/Body.cpp | 1 + src/QuickMedia.cpp | 1 + src/Storage.cpp | 1 + src/VideoPlayer.cpp | 1 + src/plugins/FileManager.cpp | 1 + src/plugins/Lbry.cpp | 1 + src/plugins/LocalAnime.cpp | 1 + src/plugins/LocalManga.cpp | 1 + src/plugins/MangaCombined.cpp | 1 + src/plugins/Mangadex.cpp | 1 + src/plugins/Matrix.cpp | 1 + src/plugins/Page.cpp | 1 + src/plugins/Peertube.cpp | 1 + src/plugins/Youtube.cpp | 1 + 15 files changed, 15 insertions(+), 1 deletion(-) diff --git a/depends/mglpp b/depends/mglpp index 3f07fa1..fd15a69 160000 --- a/depends/mglpp +++ b/depends/mglpp @@ -1 +1 @@ -Subproject commit 3f07fa13a3e93eea87e2a885fa24ae6ea0aeb88e +Subproject commit fd15a6947741c997072df8b1ddf93cefc416c838 diff --git a/src/Body.cpp b/src/Body.cpp index e5a23b8..1d11962 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -15,6 +15,7 @@ #include #include #include +#include struct BodySpacing { float spacing_y = 0.0f; diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 151c136..648f231 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -54,6 +54,7 @@ #include #include #include +#include #include #include diff --git a/src/Storage.cpp b/src/Storage.cpp index c09e23b..dc6b6a2 100644 --- a/src/Storage.cpp +++ b/src/Storage.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index c56981a..f263fc9 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include diff --git a/src/plugins/FileManager.cpp b/src/plugins/FileManager.cpp index 7508776..ba0fcfd 100644 --- a/src/plugins/FileManager.cpp +++ b/src/plugins/FileManager.cpp @@ -5,6 +5,7 @@ #include "../../include/Config.hpp" #include "../../include/Storage.hpp" #include "../../include/QuickMedia.hpp" +#include namespace QuickMedia { static bool last_accessed_dir_loaded = false; diff --git a/src/plugins/Lbry.cpp b/src/plugins/Lbry.cpp index 38b6238..5d611fd 100644 --- a/src/plugins/Lbry.cpp +++ b/src/plugins/Lbry.cpp @@ -2,6 +2,7 @@ #include "../../include/Notification.hpp" #include "../../include/StringUtils.hpp" #include "../../include/Theme.hpp" +#include #include #include diff --git a/src/plugins/LocalAnime.cpp b/src/plugins/LocalAnime.cpp index 8ab9454..bab662b 100644 --- a/src/plugins/LocalAnime.cpp +++ b/src/plugins/LocalAnime.cpp @@ -11,6 +11,7 @@ #include #include #include +#include namespace QuickMedia { static const mgl::Color finished_watching_color = mgl::Color(43, 255, 47); diff --git a/src/plugins/LocalManga.cpp b/src/plugins/LocalManga.cpp index 3bb3c93..fa0df27 100644 --- a/src/plugins/LocalManga.cpp +++ b/src/plugins/LocalManga.cpp @@ -8,6 +8,7 @@ #include "../../include/QuickMedia.hpp" #include #include +#include // TODO: Make thumbnail paths in history and thumbnail-link relative to local_manga.directory diff --git a/src/plugins/MangaCombined.cpp b/src/plugins/MangaCombined.cpp index ce08b1c..f5bb643 100644 --- a/src/plugins/MangaCombined.cpp +++ b/src/plugins/MangaCombined.cpp @@ -1,4 +1,5 @@ #include "../../plugins/MangaCombined.hpp" +#include namespace QuickMedia { static const int SEARCH_TIMEOUT_MILLISECONDS = 5000; diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp index 4b5745f..b8d4f1e 100644 --- a/src/plugins/Mangadex.cpp +++ b/src/plugins/Mangadex.cpp @@ -2,6 +2,7 @@ #include "../../include/Utils.hpp" #include "../../include/Theme.hpp" #include "../../include/Config.hpp" +#include #include namespace QuickMedia { diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 06ed3a0..c4aa076 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -20,6 +20,7 @@ #include #include "../../include/QuickMedia.hpp" #include +#include // TODO: Use string assign with string length instead of assigning to c string (which calls strlen) // Show images/videos inline. diff --git a/src/plugins/Page.cpp b/src/plugins/Page.cpp index 0e52ca4..8881555 100644 --- a/src/plugins/Page.cpp +++ b/src/plugins/Page.cpp @@ -3,6 +3,7 @@ #include "../../include/Theme.hpp" #include "../../include/Storage.hpp" #include "../../include/QuickMedia.hpp" +#include #include namespace QuickMedia { diff --git a/src/plugins/Peertube.cpp b/src/plugins/Peertube.cpp index 6d55e16..d7667dd 100644 --- a/src/plugins/Peertube.cpp +++ b/src/plugins/Peertube.cpp @@ -4,6 +4,7 @@ #include "../../include/Utils.hpp" #include "../../include/StringUtils.hpp" #include "../../include/Config.hpp" +#include #include namespace QuickMedia { diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp index 1a29110..2c20f3f 100644 --- a/src/plugins/Youtube.cpp +++ b/src/plugins/Youtube.cpp @@ -12,6 +12,7 @@ #include "../../include/QuickMedia.hpp" #include #include +#include extern "C" { #include } -- cgit v1.2.3