From 5a95eb1282e30bd803d7e0b352a8443795842e42 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 2 Nov 2022 19:03:32 +0100 Subject: fix build with Linux and/or GCC --- anim-crop-tool/atlas.hpp | 3 +-- anim-crop-tool/main.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'anim-crop-tool') 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 +#include #include #include #include -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; -- cgit v1.2.3