1
0
Fork 0
forked from suyu/suyu

general: Fix clang/gcc build errors

This commit is contained in:
ameerj 2022-03-19 01:50:03 -04:00
parent a367db44cf
commit 866b7c20a8
12 changed files with 17 additions and 4 deletions

View file

@ -3,6 +3,7 @@
#pragma once #pragma once
#include <cstddef> #include <cstddef>
#include <new>
#include <type_traits> #include <type_traits>
namespace Common { namespace Common {

View file

@ -8,6 +8,8 @@
#if _MSC_VER #if _MSC_VER
#include <intrin.h> #include <intrin.h>
#else
#include <cstring>
#endif #endif
namespace Common { namespace Common {

View file

@ -8,6 +8,7 @@
#ifdef _WIN32 #ifdef _WIN32
#include <io.h> #include <io.h>
#include <share.h>
#else #else
#include <unistd.h> #include <unistd.h>
#endif #endif

View file

@ -2,6 +2,8 @@
// 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 <algorithm>
#include "common/fs/fs_util.h" #include "common/fs/fs_util.h"
namespace Common::FS { namespace Common::FS {

View file

@ -18,6 +18,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <unistd.h> #include <unistd.h>
#include "common/scope_exit.h"
#endif // ^^^ Linux ^^^ #endif // ^^^ Linux ^^^

View file

@ -4,6 +4,7 @@
#include <string> #include <string>
#include "common/error.h"
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/thread.h" #include "common/thread.h"
#ifdef __APPLE__ #ifdef __APPLE__

View file

@ -12,6 +12,7 @@
#pragma intrinsic(_umul128) #pragma intrinsic(_umul128)
#pragma intrinsic(_udiv128) #pragma intrinsic(_udiv128)
#else #else
#include <cstring>
#include <x86intrin.h> #include <x86intrin.h>
#endif #endif

View file

@ -5,6 +5,7 @@
#pragma once #pragma once
#include <array> #include <array>
#include <filesystem>
#include <map> #include <map>
#include <optional> #include <optional>
#include <string> #include <string>
@ -15,10 +16,6 @@
#include "common/common_types.h" #include "common/common_types.h"
#include "core/crypto/partition_data_manager.h" #include "core/crypto/partition_data_manager.h"
namespace std::filesystem {
class path;
}
namespace Common::FS { namespace Common::FS {
class IOFile; class IOFile;
} }

View file

@ -10,6 +10,10 @@
#include "common/hex_util.h" #include "common/hex_util.h"
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/settings.h" #include "common/settings.h"
#ifndef _WIN32
#include "common/string_util.h"
#endif
#include "core/core.h" #include "core/core.h"
#include "core/file_sys/common_funcs.h" #include "core/file_sys/common_funcs.h"
#include "core/file_sys/content_archive.h" #include "core/file_sys/content_archive.h"

View file

@ -4,6 +4,7 @@
#pragma once #pragma once
#include <algorithm>
#include <array> #include <array>
#include <fmt/format.h> #include <fmt/format.h>

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 <algorithm>
#include <mutex> #include <mutex>
#include <span> #include <span>
#include <vector> #include <vector>

View file

@ -16,6 +16,7 @@
// <http://gamma.cs.unc.edu/FasTC/> // <http://gamma.cs.unc.edu/FasTC/>
#include <algorithm> #include <algorithm>
#include <bit>
#include <cassert> #include <cassert>
#include <cstring> #include <cstring>
#include <span> #include <span>