From a35f8cbb78334812f44d06163b2252a90997281f Mon Sep 17 00:00:00 2001 From: Vitor K Date: Thu, 28 Sep 2023 10:06:50 -0300 Subject: [PATCH] fix include/namespace related compilation errors (#7019) a user on discord reported compilation errors when trying to compile on Linux with GCC 13 and Clang 16. --- src/audio_core/time_stretch.cpp | 2 ++ src/tests/audio_core/hle/adts_reader.cpp | 2 ++ src/tests/audio_core/hle/hle.cpp | 2 ++ src/tests/audio_core/lle/lle.cpp | 2 ++ src/video_core/renderer_opengl/gl_state.cpp | 2 +- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/audio_core/time_stretch.cpp b/src/audio_core/time_stretch.cpp index ce89088743..38003ac3fc 100644 --- a/src/audio_core/time_stretch.cpp +++ b/src/audio_core/time_stretch.cpp @@ -10,8 +10,10 @@ #include #include #include + #include "audio_core/audio_types.h" #include "audio_core/time_stretch.h" +#include "common/assert.h" #include "common/logging/log.h" namespace AudioCore { diff --git a/src/tests/audio_core/hle/adts_reader.cpp b/src/tests/audio_core/hle/adts_reader.cpp index d4d3de2d8a..8971c8b4a4 100644 --- a/src/tests/audio_core/hle/adts_reader.cpp +++ b/src/tests/audio_core/hle/adts_reader.cpp @@ -3,6 +3,8 @@ // Refer to the license.txt file included. #include +#include + #include "audio_core/hle/adts.h" namespace { diff --git a/src/tests/audio_core/hle/hle.cpp b/src/tests/audio_core/hle/hle.cpp index 5bb1c2afd7..07d5e04af7 100644 --- a/src/tests/audio_core/hle/hle.cpp +++ b/src/tests/audio_core/hle/hle.cpp @@ -3,6 +3,8 @@ // Refer to the license.txt file included. #include +#include + #include "audio_core/hle/decoder.h" #include "audio_core/hle/hle.h" #include "audio_core/lle/lle.h" diff --git a/src/tests/audio_core/lle/lle.cpp b/src/tests/audio_core/lle/lle.cpp index 8b7d21e90d..d445542106 100644 --- a/src/tests/audio_core/lle/lle.cpp +++ b/src/tests/audio_core/lle/lle.cpp @@ -3,6 +3,8 @@ // Refer to the license.txt file included. #include +#include + #include "audio_core/hle/decoder.h" #include "audio_core/lle/lle.h" #include "common/common_paths.h" diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index 0ab4fc96c0..c0c99349f0 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -344,7 +344,7 @@ void OpenGLState::Apply() const { // Clip distance if (!GLES || GLAD_GL_EXT_clip_cull_distance) { - for (size_t i = 0; i < clip_distance.size(); ++i) { + for (std::size_t i = 0; i < clip_distance.size(); ++i) { if (clip_distance[i] != cur_state.clip_distance[i]) { if (clip_distance[i]) { glEnable(GL_CLIP_DISTANCE0 + static_cast(i));