diff options
| author | 2016-04-30 16:34:51 +0100 | |
|---|---|---|
| committer | 2016-04-30 17:02:41 +0100 | |
| commit | 691a42fe98954c247a8b7e9305a3e9ca5c04d40c (patch) | |
| tree | 52b6a286b6609675cbc69c63b3aa9f695ea95f0f /src/common | |
| parent | LCD: Remove unneeded #undef with no matching #define. (diff) | |
| download | yuzu-691a42fe98954c247a8b7e9305a3e9ca5c04d40c.tar.gz yuzu-691a42fe98954c247a8b7e9305a3e9ca5c04d40c.tar.xz yuzu-691a42fe98954c247a8b7e9305a3e9ca5c04d40c.zip | |
VideoCore: Run include-what-you-use and fix most includes.
Diffstat (limited to '')
| -rw-r--r-- | src/common/bit_field.h | 2 | ||||
| -rw-r--r-- | src/common/bit_set.h | 3 | ||||
| -rw-r--r-- | src/common/code_block.h | 6 | ||||
| -rw-r--r-- | src/common/common_funcs.h | 4 | ||||
| -rw-r--r-- | src/common/file_util.h | 2 | ||||
| -rw-r--r-- | src/common/x64/emitter.h | 2 |
6 files changed, 14 insertions, 5 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h index 371eb17a1..4748999ed 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h | |||
| @@ -186,5 +186,5 @@ private: | |||
| 186 | #pragma pack() | 186 | #pragma pack() |
| 187 | 187 | ||
| 188 | #if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER) | 188 | #if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER) |
| 189 | static_assert(std::is_trivially_copyable<BitField<0, 1, u32>>::value, "BitField must be trivially copyable"); | 189 | static_assert(std::is_trivially_copyable<BitField<0, 1, unsigned>>::value, "BitField must be trivially copyable"); |
| 190 | #endif | 190 | #endif |
diff --git a/src/common/bit_set.h b/src/common/bit_set.h index 85f91e786..7f5de8df2 100644 --- a/src/common/bit_set.h +++ b/src/common/bit_set.h | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include <intrin.h> | 7 | #include <intrin.h> |
| 8 | #endif | 8 | #endif |
| 9 | #include <initializer_list> | 9 | #include <initializer_list> |
| 10 | #include <new> | ||
| 10 | #include <type_traits> | 11 | #include <type_traits> |
| 11 | #include "common/common_types.h" | 12 | #include "common/common_types.h" |
| 12 | 13 | ||
| @@ -186,4 +187,4 @@ public: | |||
| 186 | typedef Common::BitSet<u8> BitSet8; | 187 | typedef Common::BitSet<u8> BitSet8; |
| 187 | typedef Common::BitSet<u16> BitSet16; | 188 | typedef Common::BitSet<u16> BitSet16; |
| 188 | typedef Common::BitSet<u32> BitSet32; | 189 | typedef Common::BitSet<u32> BitSet32; |
| 189 | typedef Common::BitSet<u64> BitSet64; \ No newline at end of file | 190 | typedef Common::BitSet<u64> BitSet64; |
diff --git a/src/common/code_block.h b/src/common/code_block.h index 9ef7296d3..2fa4a0090 100644 --- a/src/common/code_block.h +++ b/src/common/code_block.h | |||
| @@ -4,8 +4,10 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common_types.h" | 7 | #include <cstddef> |
| 8 | #include "memory_util.h" | 8 | |
| 9 | #include "common/common_types.h" | ||
| 10 | #include "common/memory_util.h" | ||
| 9 | 11 | ||
| 10 | // Everything that needs to generate code should inherit from this. | 12 | // Everything that needs to generate code should inherit from this. |
| 11 | // You get memory management for free, plus, you can use all emitter functions without | 13 | // You get memory management for free, plus, you can use all emitter functions without |
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index aa6aff7b9..ab3515683 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h | |||
| @@ -4,6 +4,10 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #if !defined(ARCHITECTURE_x86_64) && !defined(_M_ARM) | ||
| 8 | #include <cstdlib> // for exit | ||
| 9 | #endif | ||
| 10 | |||
| 7 | #include "common_types.h" | 11 | #include "common_types.h" |
| 8 | 12 | ||
| 9 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) | 13 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) |
diff --git a/src/common/file_util.h b/src/common/file_util.h index 3aac4fa46..c6a8694ce 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h | |||
| @@ -7,9 +7,9 @@ | |||
| 7 | #include <array> | 7 | #include <array> |
| 8 | #include <fstream> | 8 | #include <fstream> |
| 9 | #include <functional> | 9 | #include <functional> |
| 10 | #include <cstddef> | ||
| 11 | #include <cstdio> | 10 | #include <cstdio> |
| 12 | #include <string> | 11 | #include <string> |
| 12 | #include <type_traits> | ||
| 13 | #include <vector> | 13 | #include <vector> |
| 14 | 14 | ||
| 15 | #include "common/common_types.h" | 15 | #include "common/common_types.h" |
diff --git a/src/common/x64/emitter.h b/src/common/x64/emitter.h index a33724146..60a77dfe1 100644 --- a/src/common/x64/emitter.h +++ b/src/common/x64/emitter.h | |||
| @@ -17,6 +17,8 @@ | |||
| 17 | 17 | ||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #include <cstddef> | ||
| 21 | |||
| 20 | #include "common/assert.h" | 22 | #include "common/assert.h" |
| 21 | #include "common/bit_set.h" | 23 | #include "common/bit_set.h" |
| 22 | #include "common/common_types.h" | 24 | #include "common/common_types.h" |