From a0ef81d76b566ac64b89d9bddc3433e095ba5db1 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 21 Nov 2024 11:58:59 +0100 Subject: [PATCH] audio/codec: improved including --- src/audio/codec.cpp | 8 +++++--- src/audio/codec.h | 9 +++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/audio/codec.cpp b/src/audio/codec.cpp index 01eaca0a5a..3903bd4df7 100644 --- a/src/audio/codec.cpp +++ b/src/audio/codec.cpp @@ -35,20 +35,22 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config_unix.h" -#include "config_win32.h" +#include "audio/codec.h" #include #include #include +#include // for printf +#include // for NULL, calloc, free, realloc +#include // for strchr, memset, strtok_r, strdupa #include #include -#include "audio/codec.h" #include "audio/utils.h" #include "compat/strings.h" // strdup, strcasecmp #include "debug.h" #include "lib_common.h" +#include "utils/color_out.h" // for col, SBOLD, SRED, TRED #include "utils/macros.h" #include "utils/misc.h" diff --git a/src/audio/codec.h b/src/audio/codec.h index 1399ef5d3b..3b63b3f140 100644 --- a/src/audio/codec.h +++ b/src/audio/codec.h @@ -42,6 +42,14 @@ #define AUDIO_COMPRESS_ABI_VERSION 4 +#ifdef __cplusplus +#include // for size_t +#include // for uint32_t +#else +#include // for size_t +#include // for uint32_t +#endif + typedef enum { AUDIO_CODER, AUDIO_DECODER @@ -69,6 +77,7 @@ typedef struct { #ifdef __cplusplus #include #include +#include // for vector struct audio_codec_state; struct audio_codec_state *audio_codec_init(audio_codec_t audio_codec, audio_codec_direction_t);