diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-23 16:23:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-23 16:23:41 +0200 |
commit | e7e209d9001967319fb4cba374ee9c750adf1fb6 (patch) | |
tree | d3449345bf133db24c3545571331fb2a8eea07fa /src | |
parent | Merge pull request #1519 from ReinUsesLisp/vsetp (diff) | |
parent | cmake: mingw also needs _FILE_OFFSET_BITS=64 (diff) | |
download | yuzu-e7e209d9001967319fb4cba374ee9c750adf1fb6.tar yuzu-e7e209d9001967319fb4cba374ee9c750adf1fb6.tar.gz yuzu-e7e209d9001967319fb4cba374ee9c750adf1fb6.tar.bz2 yuzu-e7e209d9001967319fb4cba374ee9c750adf1fb6.tar.lz yuzu-e7e209d9001967319fb4cba374ee9c750adf1fb6.tar.xz yuzu-e7e209d9001967319fb4cba374ee9c750adf1fb6.tar.zst yuzu-e7e209d9001967319fb4cba374ee9c750adf1fb6.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/common/file_util.cpp | 13 |
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> |