diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-03-19 06:50:03 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-03-20 07:25:09 +0100 |
commit | 866b7c20a8958069a048ffa600155ec3cbd2e5f2 (patch) | |
tree | 54191364052f7adc86f4f94afcb45b68186edda2 /src | |
parent | yuzu_cmd: Reduce unused includes (diff) | |
download | yuzu-866b7c20a8958069a048ffa600155ec3cbd2e5f2.tar yuzu-866b7c20a8958069a048ffa600155ec3cbd2e5f2.tar.gz yuzu-866b7c20a8958069a048ffa600155ec3cbd2e5f2.tar.bz2 yuzu-866b7c20a8958069a048ffa600155ec3cbd2e5f2.tar.lz yuzu-866b7c20a8958069a048ffa600155ec3cbd2e5f2.tar.xz yuzu-866b7c20a8958069a048ffa600155ec3cbd2e5f2.tar.zst yuzu-866b7c20a8958069a048ffa600155ec3cbd2e5f2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/alignment.h | 1 | ||||
-rw-r--r-- | src/common/atomic_ops.h | 2 | ||||
-rw-r--r-- | src/common/fs/file.cpp | 1 | ||||
-rw-r--r-- | src/common/fs/fs_util.cpp | 2 | ||||
-rw-r--r-- | src/common/host_memory.cpp | 1 | ||||
-rw-r--r-- | src/common/thread.cpp | 1 | ||||
-rw-r--r-- | src/common/uint128.h | 1 | ||||
-rw-r--r-- | src/core/crypto/key_manager.h | 5 | ||||
-rw-r--r-- | src/core/file_sys/patch_manager.cpp | 4 | ||||
-rw-r--r-- | src/shader_recompiler/frontend/ir/opcodes.h | 1 | ||||
-rw-r--r-- | src/video_core/renderer_vulkan/vk_descriptor_pool.cpp | 1 | ||||
-rw-r--r-- | src/video_core/textures/astc.cpp | 1 |
12 files changed, 17 insertions, 4 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h index e4653bf35..8570c7d3c 100644 --- a/src/common/alignment.h +++ b/src/common/alignment.h @@ -3,6 +3,7 @@ #pragma once #include <cstddef> +#include <new> #include <type_traits> namespace Common { diff --git a/src/common/atomic_ops.h b/src/common/atomic_ops.h index c488489ea..b94d73c7a 100644 --- a/src/common/atomic_ops.h +++ b/src/common/atomic_ops.h @@ -8,6 +8,8 @@ #if _MSC_VER #include <intrin.h> +#else +#include <cstring> #endif namespace Common { diff --git a/src/common/fs/file.cpp b/src/common/fs/file.cpp index b89e785c2..5d71275ef 100644 --- a/src/common/fs/file.cpp +++ b/src/common/fs/file.cpp @@ -8,6 +8,7 @@ #ifdef _WIN32 #include <io.h> +#include <share.h> #else #include <unistd.h> #endif diff --git a/src/common/fs/fs_util.cpp b/src/common/fs/fs_util.cpp index 1f47c2310..0068112e6 100644 --- a/src/common/fs/fs_util.cpp +++ b/src/common/fs/fs_util.cpp @@ -2,6 +2,8 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <algorithm> + #include "common/fs/fs_util.h" namespace Common::FS { diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index 229fbe91e..e829af1ac 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp @@ -18,6 +18,7 @@ #include <fcntl.h> #include <sys/mman.h> #include <unistd.h> +#include "common/scope_exit.h" #endif // ^^^ Linux ^^^ diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 91c8a8e13..946a1114d 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp @@ -4,6 +4,7 @@ #include <string> +#include "common/error.h" #include "common/logging/log.h" #include "common/thread.h" #ifdef __APPLE__ diff --git a/src/common/uint128.h b/src/common/uint128.h index 1ed5d6507..ad1b90414 100644 --- a/src/common/uint128.h +++ b/src/common/uint128.h @@ -12,6 +12,7 @@ #pragma intrinsic(_umul128) #pragma intrinsic(_udiv128) #else +#include <cstring> #include <x86intrin.h> #endif diff --git a/src/core/crypto/key_manager.h b/src/core/crypto/key_manager.h index 34ea5bbd4..ac1eb8962 100644 --- a/src/core/crypto/key_manager.h +++ b/src/core/crypto/key_manager.h @@ -5,6 +5,7 @@ #pragma once #include <array> +#include <filesystem> #include <map> #include <optional> #include <string> @@ -15,10 +16,6 @@ #include "common/common_types.h" #include "core/crypto/partition_data_manager.h" -namespace std::filesystem { -class path; -} - namespace Common::FS { class IOFile; } diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 5882b971b..c4e185757 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -10,6 +10,10 @@ #include "common/hex_util.h" #include "common/logging/log.h" #include "common/settings.h" +#ifndef _WIN32 +#include "common/string_util.h" +#endif + #include "core/core.h" #include "core/file_sys/common_funcs.h" #include "core/file_sys/content_archive.h" diff --git a/src/shader_recompiler/frontend/ir/opcodes.h b/src/shader_recompiler/frontend/ir/opcodes.h index 9de65c8b2..85f7aac02 100644 --- a/src/shader_recompiler/frontend/ir/opcodes.h +++ b/src/shader_recompiler/frontend/ir/opcodes.h @@ -4,6 +4,7 @@ #pragma once +#include <algorithm> #include <array> #include <fmt/format.h> diff --git a/src/video_core/renderer_vulkan/vk_descriptor_pool.cpp b/src/video_core/renderer_vulkan/vk_descriptor_pool.cpp index 60e45f1b9..d87da2a34 100644 --- a/src/video_core/renderer_vulkan/vk_descriptor_pool.cpp +++ b/src/video_core/renderer_vulkan/vk_descriptor_pool.cpp @@ -2,6 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <algorithm> #include <mutex> #include <span> #include <vector> diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp index 25161df1f..28e4beafd 100644 --- a/src/video_core/textures/astc.cpp +++ b/src/video_core/textures/astc.cpp @@ -16,6 +16,7 @@ // <http://gamma.cs.unc.edu/FasTC/> #include <algorithm> +#include <bit> #include <cassert> #include <cstring> #include <span> |