From 260c138d5e2a4553589bb3f0c55f62914b2da8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?= =?UTF-8?q?=20=28Mehdi=20Chinoune=29?= Date: Mon, 6 May 2024 17:36:06 +0100 Subject: [PATCH] Fix building on MinGW --- src/tile/tile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tile/tile.cpp b/src/tile/tile.cpp index cbd85ed..e368c13 100644 --- a/src/tile/tile.cpp +++ b/src/tile/tile.cpp @@ -51,7 +51,11 @@ std::vector directoryList(const std::string& dir) fs::directory_iterator end; while (it != end) { +#ifndef __MINGW32__ files.push_back(untwine::fromNative(it->path())); +#else + files.push_back(untwine::fromNative(it->path().string())); +#endif it++; } }