diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-02 19:03:32 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-02 20:25:31 +0100 |
commit | 5a95eb1282e30bd803d7e0b352a8443795842e42 (patch) | |
tree | c97bc43e4d5107a427817c65aa1b0c2eeb64a427 /anim-crop-tool | |
parent | 0fe5336b9a53f20817f54be0bd7cd935db14914c (diff) |
fix build with Linux and/or GCC
Diffstat (limited to 'anim-crop-tool')
-rw-r--r-- | anim-crop-tool/atlas.hpp | 3 | ||||
-rw-r--r-- | anim-crop-tool/main.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/anim-crop-tool/atlas.hpp b/anim-crop-tool/atlas.hpp index 02e7176b..6da8fd63 100644 --- a/anim-crop-tool/atlas.hpp +++ b/anim-crop-tool/atlas.hpp @@ -1,11 +1,10 @@ #pragma once #include <vector> +#include <filesystem> #include <Magnum/Magnum.h> #include <Magnum/Math/Vector2.h> #include <opencv2/core/mat.hpp> -namespace std::filesystem { class path; } - namespace floormat::Serialize { struct anim_frame; diff --git a/anim-crop-tool/main.cpp b/anim-crop-tool/main.cpp index e77821f5..430e4b80 100644 --- a/anim-crop-tool/main.cpp +++ b/anim-crop-tool/main.cpp @@ -185,7 +185,7 @@ static char* fix_argv0(char* argv0) noexcept return c+1; } #else - if (auto* c = strrchr(argv[0], '/'); c && c[1]) + if (auto* c = strrchr(argv0, '/'); c && c[1]) return c+1; #endif return argv0; |