1
0
Fork 0
forked from suyu/suyu

Common: Fix FileUtil includes, and everything relying on those.

This commit is contained in:
Emmanuel Gil Peyrot 2015-06-20 22:24:01 +01:00
parent 79aa1b0808
commit 8cf9eb7f43
10 changed files with 21 additions and 7 deletions

View file

@ -26,13 +26,14 @@
// - Zero backwards/forwards compatibility // - Zero backwards/forwards compatibility
// - Serialization code for anything complex has to be manually written. // - Serialization code for anything complex has to be manually written.
#include <map> #include <cstring>
#include <vector>
#include <deque> #include <deque>
#include <string>
#include <list> #include <list>
#include <map>
#include <set> #include <set>
#include <string>
#include <type_traits> #include <type_traits>
#include <vector>
#include "common/common_types.h" #include "common/common_types.h"
#include "common/file_util.h" #include "common/file_util.h"

View file

@ -17,6 +17,8 @@
#include <direct.h> // getcwd #include <direct.h> // getcwd
#include <tchar.h> #include <tchar.h>
#include "common/string_util.h"
// 64 bit offsets for windows // 64 bit offsets for windows
#define fseeko _fseeki64 #define fseeko _fseeki64
#define ftello _ftelli64 #define ftello _ftelli64
@ -25,8 +27,13 @@
#define fstat64 _fstat64 #define fstat64 _fstat64
#define fileno _fileno #define fileno _fileno
#else #else
#include <sys/param.h> #ifdef __APPLE__
#include <sys/types.h> #include <sys/param.h>
#endif
#include <cctype>
#include <cerrno>
#include <cstdlib>
#include <cstring>
#include <dirent.h> #include <dirent.h>
#include <pwd.h> #include <pwd.h>
#include <unistd.h> #include <unistd.h>

View file

@ -6,13 +6,12 @@
#include <array> #include <array>
#include <fstream> #include <fstream>
#include <cstddef>
#include <cstdio> #include <cstdio>
#include <cstring>
#include <string> #include <string>
#include <vector> #include <vector>
#include "common/common_types.h" #include "common/common_types.h"
#include "common/string_util.h"
// User directory indices for GetUserPath // User directory indices for GetUserPath
enum { enum {

View file

@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version // Licensed under GPLv2 or any later version
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <sstream>
#include <string> #include <string>
#include <vector> #include <vector>

View file

@ -9,6 +9,7 @@
#include "common/assert.h" #include "common/assert.h"
#include "common/chunk_file.h" #include "common/chunk_file.h"
#include "common/string_util.h"
#include "core/arm/arm_interface.h" #include "core/arm/arm_interface.h"
#include "core/core.h" #include "core/core.h"

View file

@ -8,6 +8,7 @@
#include "common/file_util.h" #include "common/file_util.h"
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/make_unique.h" #include "common/make_unique.h"
#include "common/string_util.h"
#include "core/file_sys/archive_extsavedata.h" #include "core/file_sys/archive_extsavedata.h"
#include "core/file_sys/disk_archive.h" #include "core/file_sys/disk_archive.h"

View file

@ -8,6 +8,7 @@
#include "common/file_util.h" #include "common/file_util.h"
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/make_unique.h" #include "common/make_unique.h"
#include "common/string_util.h"
#include "core/file_sys/archive_savedata.h" #include "core/file_sys/archive_savedata.h"
#include "core/file_sys/disk_archive.h" #include "core/file_sys/disk_archive.h"

View file

@ -5,6 +5,7 @@
#include "common/file_util.h" #include "common/file_util.h"
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/make_unique.h" #include "common/make_unique.h"
#include "common/string_util.h"
#include "core/file_sys/archive_savedatacheck.h" #include "core/file_sys/archive_savedatacheck.h"
#include "core/hle/service/fs/archive.h" #include "core/hle/service/fs/archive.h"

View file

@ -7,6 +7,7 @@
#include "common/common_types.h" #include "common/common_types.h"
#include "common/file_util.h" #include "common/file_util.h"
#include "common/make_unique.h" #include "common/make_unique.h"
#include "common/string_util.h"
#include "core/file_sys/archive_systemsavedata.h" #include "core/file_sys/archive_systemsavedata.h"
#include "core/hle/service/fs/archive.h" #include "core/hle/service/fs/archive.h"

View file

@ -6,6 +6,7 @@
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/make_unique.h" #include "common/make_unique.h"
#include "common/string_util.h"
#include "core/file_sys/archive_romfs.h" #include "core/file_sys/archive_romfs.h"
#include "core/hle/kernel/process.h" #include "core/hle/kernel/process.h"