diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-07 07:01:32 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-07 07:01:32 +0100 |
| commit | dbb6d49a5632a26885e6e388128d68fe1932a4ea (patch) | |
| tree | 28ccf74c6fe06c1e79a98fc1d534c9086387b849 /main | |
| parent | 2a0f6513132982c17644fc0917ad1f632b2d5b81 (diff) | |
add missing includes
Diffstat (limited to 'main')
| -rw-r--r-- | main/draw.cpp | 1 | ||||
| -rw-r--r-- | main/events.cpp | 2 | ||||
| -rw-r--r-- | main/setup.cpp | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/main/draw.cpp b/main/draw.cpp index 0d7aa951..1c955099 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -2,6 +2,7 @@ #include "floormat/app.hpp" #include "src/camera-offset.hpp" #include <Magnum/GL/DefaultFramebuffer.h> +#include <algorithm> #include <thread> namespace floormat { diff --git a/main/events.cpp b/main/events.cpp index 0344f1a1..922b2d23 100644 --- a/main/events.cpp +++ b/main/events.cpp @@ -1,6 +1,7 @@ #include "main-impl.hpp" #include "floormat/app.hpp" #include "floormat/events.hpp" +#include <cstring> #include <SDL_events.h> //#include <SDL_video.h> @@ -105,4 +106,3 @@ void main_impl::anyEvent(SDL_Event& event) } } // namespace floormat - diff --git a/main/setup.cpp b/main/setup.cpp index edd95767..1329374a 100644 --- a/main/setup.cpp +++ b/main/setup.cpp @@ -1,5 +1,7 @@ #include "main-impl.hpp" #include "compat/fpu.hpp" +#include <algorithm> +#include <Corrade/Containers/StringView.h> namespace floormat { @@ -12,7 +14,7 @@ main_impl::main_impl(floormat_app& app, fm_settings&& s, int& fake_argc) noexcep { (void)setSwapInterval(1); if (const auto list = GL::Context::current().extensionStrings(); - std::find(list.cbegin(), list.cend(), "EXT_swap_control_tear") != list.cbegin()) + std::find(list.cbegin(), list.cend(), "EXT_swap_control_tear") != list.cend()) (void)setSwapInterval(-1); } else |
