diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-06-20 22:24:01 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-06-28 00:36:53 +0100 |
commit | 8cf9eb7f431e235a39f380118cfd081a604ea1c9 (patch) | |
tree | 40fb32350e16c85e65c44b121f8cf37d11ba6f13 /src/common/file_util.cpp | |
parent | 79aa1b0808e8561560b58dab950ba4cd36e6aabb (diff) |
Common: Fix FileUtil includes, and everything relying on those.
Diffstat (limited to 'src/common/file_util.cpp')
-rw-r--r-- | src/common/file_util.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 24648ea33b..836b58d527 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> |