summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorWeiyi Wang <wwylele@gmail.com>2018-10-13 17:57:21 +0200
committerfearlessTobi <thm.frey@gmail.com>2018-10-23 15:11:18 +0200
commit2ff2732a789a14193dd4fac6b1d910ce96ac3d43 (patch)
tree516ffea90b71829f4f39bca509367fa605cd1957 /src/common
parentMerge pull request #1512 from ReinUsesLisp/brk (diff)
downloadyuzu-2ff2732a789a14193dd4fac6b1d910ce96ac3d43.tar
yuzu-2ff2732a789a14193dd4fac6b1d910ce96ac3d43.tar.gz
yuzu-2ff2732a789a14193dd4fac6b1d910ce96ac3d43.tar.bz2
yuzu-2ff2732a789a14193dd4fac6b1d910ce96ac3d43.tar.lz
yuzu-2ff2732a789a14193dd4fac6b1d910ce96ac3d43.tar.xz
yuzu-2ff2732a789a14193dd4fac6b1d910ce96ac3d43.tar.zst
yuzu-2ff2732a789a14193dd4fac6b1d910ce96ac3d43.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/file_util.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 548463787..b52492da6 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -15,21 +15,24 @@
#ifdef _WIN32
#include <windows.h>
// windows.h needs to be included before other windows headers
-#include <commdlg.h> // for GetSaveFileName
-#include <direct.h> // getcwd
+#include <direct.h> // getcwd
#include <io.h>
#include <shellapi.h>
#include <shlobj.h> // for SHGetFolderPath
#include <tchar.h>
#include "common/string_util.h"
-// 64 bit offsets for windows
+#ifdef _MSC_VER
+// 64 bit offsets for MSVC
#define fseeko _fseeki64
#define ftello _ftelli64
-#define atoll _atoi64
+#define fileno _fileno
+#endif
+
+// 64 bit offsets for MSVC and MinGW. MinGW also needs this for using _wstat64
#define stat _stat64
#define fstat _fstat64
-#define fileno _fileno
+
#else
#ifdef __APPLE__
#include <sys/param.h>