summaryrefslogtreecommitdiffstats
path: root/src/common/file_util.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-20 23:24:01 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-28 01:36:53 +0200
commit8cf9eb7f431e235a39f380118cfd081a604ea1c9 (patch)
tree40fb32350e16c85e65c44b121f8cf37d11ba6f13 /src/common/file_util.cpp
parentCitra: Fix the includes a bit, thanks to include-what-you-use. (diff)
downloadyuzu-8cf9eb7f431e235a39f380118cfd081a604ea1c9.tar
yuzu-8cf9eb7f431e235a39f380118cfd081a604ea1c9.tar.gz
yuzu-8cf9eb7f431e235a39f380118cfd081a604ea1c9.tar.bz2
yuzu-8cf9eb7f431e235a39f380118cfd081a604ea1c9.tar.lz
yuzu-8cf9eb7f431e235a39f380118cfd081a604ea1c9.tar.xz
yuzu-8cf9eb7f431e235a39f380118cfd081a604ea1c9.tar.zst
yuzu-8cf9eb7f431e235a39f380118cfd081a604ea1c9.zip
Diffstat (limited to 'src/common/file_util.cpp')
-rw-r--r--src/common/file_util.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 24648ea33..836b58d52 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -17,6 +17,8 @@
#include <direct.h> // getcwd
#include <tchar.h>
+ #include "common/string_util.h"
+
// 64 bit offsets for windows
#define fseeko _fseeki64
#define ftello _ftelli64
@@ -25,8 +27,13 @@
#define fstat64 _fstat64
#define fileno _fileno
#else
- #include <sys/param.h>
- #include <sys/types.h>
+ #ifdef __APPLE__
+ #include <sys/param.h>
+ #endif
+ #include <cctype>
+ #include <cerrno>
+ #include <cstdlib>
+ #include <cstring>
#include <dirent.h>
#include <pwd.h>
#include <unistd.h>