Commit b6457301 authored by Gregorio Litenstein's avatar Gregorio Litenstein Committed by Arjan Spieard

Fix type of stat on mingw-w64 builds.

# Conflicts:
#	game/songs.cc
parent c5f061d6
......@@ -19,9 +19,11 @@
#include <sys/types.h>
#include <sys/stat.h>
#define _STAT(x, y) _stat(x, y)
using STAT = struct _stat;
#else
#include <sys/stat.h>
#define _STAT(x, y) stat(x, y)
using STAT = struct stat;
#endif
struct Platform {
......
......@@ -113,7 +113,7 @@ void Songs::LoadCache() {
}
for(auto const& song : jsonRoot.as_array()) {
struct stat buffer;
STAT buffer;
auto songPath = song.at("TxtFile").as_string();
auto isSongPathInConfiguredPaths = std::find_if(
userSongs.begin(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment