commit dfaa6a4df6b64333f2b65beb1a533b8e9794b0af parent 0590c9fbc165e8e24e2a3a1ba25c2eca8ba6ac6b Author: cfillion <cfillion@users.noreply.github.com> Date: Fri, 4 Mar 2016 20:38:44 -0800 fix windows build Diffstat:
M | src/filesystem.cpp | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/filesystem.cpp b/src/filesystem.cpp @@ -117,12 +117,14 @@ bool FS::removeRecursive(const Path &file) bool FS::mtime(const Path &path, time_t *time) { - struct stat st; - #ifdef _WIN32 - if(_wstat(make_autostring(path.join()).c_str() &st)) + struct _stat st; + + if(_wstat(make_autostring(path.join()).c_str(), &st)) return false; #else + struct stat st; + if(stat(path.join().c_str(), &st)) return false; #endif