From a31238a2fbf63c55c57dded9bfbe82e868f48cef Mon Sep 17 00:00:00 2001 From: badaix Date: Sat, 1 Jun 2024 12:04:18 +0200 Subject: [PATCH] Fix opus includes --- CMakeLists.txt | 2 +- client/decoder/opus_decoder.hpp | 4 ++++ server/encoder/opus_encoder.hpp | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f8da9dfd..03848abc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -338,7 +338,7 @@ if(WIN32) find_package_handle_standard_args(Vorbis REQUIRED VORBIS_INCLUDE_DIRS VORBIS_LIBRARIES) - find_path(OPUS_INCLUDE_DIRS opus.h) + find_path(OPUS_INCLUDE_DIRS opus/opus.h) find_library(OPUS_LIBRARIES opus) find_package_handle_standard_args(Opus REQUIRED OPUS_INCLUDE_DIRS OPUS_LIBRARIES) diff --git a/client/decoder/opus_decoder.hpp b/client/decoder/opus_decoder.hpp index fea1f7ca..e23e3512 100644 --- a/client/decoder/opus_decoder.hpp +++ b/client/decoder/opus_decoder.hpp @@ -23,7 +23,11 @@ #include "decoder/decoder.hpp" // 3rd party headers +#ifdef MACOS #include +#else +#include +#endif // standard headers #include diff --git a/server/encoder/opus_encoder.hpp b/server/encoder/opus_encoder.hpp index dc87f0ed..254321dd 100644 --- a/server/encoder/opus_encoder.hpp +++ b/server/encoder/opus_encoder.hpp @@ -24,7 +24,11 @@ #include "encoder.hpp" // 3rd party headers +#ifdef MACOS #include +#else +#include +#endif namespace encoder