Skip to content

Commit

Permalink
fix include/namespace related compilation errors (#7019)
Browse files Browse the repository at this point in the history
a user on discord reported compilation errors when trying to compile
on Linux with GCC 13 and Clang 16.
  • Loading branch information
vitor-k authored Sep 28, 2023
1 parent 6cfb8e0 commit a35f8cb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/audio_core/time_stretch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
#include <type_traits>
#include <vector>
#include <SoundTouch.h>

#include "audio_core/audio_types.h"
#include "audio_core/time_stretch.h"
#include "common/assert.h"
#include "common/logging/log.h"

namespace AudioCore {
Expand Down
2 changes: 2 additions & 0 deletions src/tests/audio_core/hle/adts_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Refer to the license.txt file included.

#include <catch2/catch_test_macros.hpp>
#include <fmt/format.h>

#include "audio_core/hle/adts.h"

namespace {
Expand Down
2 changes: 2 additions & 0 deletions src/tests/audio_core/hle/hle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Refer to the license.txt file included.

#include <catch2/catch_test_macros.hpp>
#include <fmt/core.h>

#include "audio_core/hle/decoder.h"
#include "audio_core/hle/hle.h"
#include "audio_core/lle/lle.h"
Expand Down
2 changes: 2 additions & 0 deletions src/tests/audio_core/lle/lle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Refer to the license.txt file included.

#include <catch2/catch_test_macros.hpp>
#include <fmt/core.h>

#include "audio_core/hle/decoder.h"
#include "audio_core/lle/lle.h"
#include "common/common_paths.h"
Expand Down
2 changes: 1 addition & 1 deletion src/video_core/renderer_opengl/gl_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<GLenum>(i));
Expand Down

0 comments on commit a35f8cb

Please sign in to comment.