aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/source/FileSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dep/g3dlite/source/FileSystem.cpp')
-rw-r--r--dep/g3dlite/source/FileSystem.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/dep/g3dlite/source/FileSystem.cpp b/dep/g3dlite/source/FileSystem.cpp
index 76a361162c9..f082937a908 100644
--- a/dep/g3dlite/source/FileSystem.cpp
+++ b/dep/g3dlite/source/FileSystem.cpp
@@ -25,8 +25,11 @@
// Needed for _findfirst
# include <io.h>
-
-#define stat64 _stat64
+# ifdef __MINGW32__
+# define stat64 stat
+# else
+# define stat64 _stat64
+# endif
#else
# include <dirent.h>
# include <fnmatch.h>