summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ameerj2022-03-19 01:50:03 -0400
committerGravatar ameerj2022-03-20 02:25:09 -0400
commit866b7c20a8958069a048ffa600155ec3cbd2e5f2 (patch)
tree54191364052f7adc86f4f94afcb45b68186edda2 /src
parentyuzu_cmd: Reduce unused includes (diff)
downloadyuzu-866b7c20a8958069a048ffa600155ec3cbd2e5f2.tar.gz
yuzu-866b7c20a8958069a048ffa600155ec3cbd2e5f2.tar.xz
yuzu-866b7c20a8958069a048ffa600155ec3cbd2e5f2.zip
general: Fix clang/gcc build errors
Diffstat (limited to 'src')
-rw-r--r--src/common/alignment.h1
-rw-r--r--src/common/atomic_ops.h2
-rw-r--r--src/common/fs/file.cpp1
-rw-r--r--src/common/fs/fs_util.cpp2
-rw-r--r--src/common/host_memory.cpp1
-rw-r--r--src/common/thread.cpp1
-rw-r--r--src/common/uint128.h1
-rw-r--r--src/core/crypto/key_manager.h5
-rw-r--r--src/core/file_sys/patch_manager.cpp4
-rw-r--r--src/shader_recompiler/frontend/ir/opcodes.h1
-rw-r--r--src/video_core/renderer_vulkan/vk_descriptor_pool.cpp1
-rw-r--r--src/video_core/textures/astc.cpp1
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 @@
3#pragma once 3#pragma once
4 4
5#include <cstddef> 5#include <cstddef>
6#include <new>
6#include <type_traits> 7#include <type_traits>
7 8
8namespace Common { 9namespace 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 @@
8 8
9#if _MSC_VER 9#if _MSC_VER
10#include <intrin.h> 10#include <intrin.h>
11#else
12#include <cstring>
11#endif 13#endif
12 14
13namespace Common { 15namespace 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 @@
8 8
9#ifdef _WIN32 9#ifdef _WIN32
10#include <io.h> 10#include <io.h>
11#include <share.h>
11#else 12#else
12#include <unistd.h> 13#include <unistd.h>
13#endif 14#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 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm>
6
5#include "common/fs/fs_util.h" 7#include "common/fs/fs_util.h"
6 8
7namespace Common::FS { 9namespace 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 @@
18#include <fcntl.h> 18#include <fcntl.h>
19#include <sys/mman.h> 19#include <sys/mman.h>
20#include <unistd.h> 20#include <unistd.h>
21#include "common/scope_exit.h"
21 22
22#endif // ^^^ Linux ^^^ 23#endif // ^^^ Linux ^^^
23 24
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 @@
4 4
5#include <string> 5#include <string>
6 6
7#include "common/error.h"
7#include "common/logging/log.h" 8#include "common/logging/log.h"
8#include "common/thread.h" 9#include "common/thread.h"
9#ifdef __APPLE__ 10#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 @@
12#pragma intrinsic(_umul128) 12#pragma intrinsic(_umul128)
13#pragma intrinsic(_udiv128) 13#pragma intrinsic(_udiv128)
14#else 14#else
15#include <cstring>
15#include <x86intrin.h> 16#include <x86intrin.h>
16#endif 17#endif
17 18
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 @@
5#pragma once 5#pragma once
6 6
7#include <array> 7#include <array>
8#include <filesystem>
8#include <map> 9#include <map>
9#include <optional> 10#include <optional>
10#include <string> 11#include <string>
@@ -15,10 +16,6 @@
15#include "common/common_types.h" 16#include "common/common_types.h"
16#include "core/crypto/partition_data_manager.h" 17#include "core/crypto/partition_data_manager.h"
17 18
18namespace std::filesystem {
19class path;
20}
21
22namespace Common::FS { 19namespace Common::FS {
23class IOFile; 20class IOFile;
24} 21}
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 @@
10#include "common/hex_util.h" 10#include "common/hex_util.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12#include "common/settings.h" 12#include "common/settings.h"
13#ifndef _WIN32
14#include "common/string_util.h"
15#endif
16
13#include "core/core.h" 17#include "core/core.h"
14#include "core/file_sys/common_funcs.h" 18#include "core/file_sys/common_funcs.h"
15#include "core/file_sys/content_archive.h" 19#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 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <algorithm>
7#include <array> 8#include <array>
8 9
9#include <fmt/format.h> 10#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 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm>
5#include <mutex> 6#include <mutex>
6#include <span> 7#include <span>
7#include <vector> 8#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 @@
16// <http://gamma.cs.unc.edu/FasTC/> 16// <http://gamma.cs.unc.edu/FasTC/>
17 17
18#include <algorithm> 18#include <algorithm>
19#include <bit>
19#include <cassert> 20#include <cassert>
20#include <cstring> 21#include <cstring>
21#include <span> 22#include <span>