Fix compilation on GCC 14.1.1

Apparantly some internal gcc header removed algorithm inclusion, so it
broke the build.

Fixes: https://github.com/scorpion-26/gBar/issues/94
This commit is contained in:
scorpion-26 2024-05-10 19:57:08 +02:00
parent 89585255fd
commit 81b97f94b6
2 changed files with 2 additions and 0 deletions

View file

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <atomic> #include <atomic>
#include <algorithm>
#include <iostream> #include <iostream>
#include <optional> #include <optional>
#include <thread> #include <thread>

View file

@ -10,6 +10,7 @@
#include <gio/gio.h> #include <gio/gio.h>
#include <libdbusmenu-gtk/menu.h> #include <libdbusmenu-gtk/menu.h>
#include <algorithm>
#include <cstdio> #include <cstdio>
#include <filesystem> #include <filesystem>
#include <unordered_set> #include <unordered_set>