Skip to content

Commit

Permalink
audio/codec: improved including
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Nov 25, 2024
1 parent 9cd1af1 commit a0ef81d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/audio/codec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <algorithm>
#include <cassert>
#include <climits>
#include <cstdio> // for printf
#include <cstdlib> // for NULL, calloc, free, realloc
#include <cstring> // for strchr, memset, strtok_r, strdupa
#include <string>
#include <unordered_map>

#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"

Expand Down
9 changes: 9 additions & 0 deletions src/audio/codec.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@

#define AUDIO_COMPRESS_ABI_VERSION 4

#ifdef __cplusplus
#include <cstddef> // for size_t
#include <cstdint> // for uint32_t
#else
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#endif

typedef enum {
AUDIO_CODER,
AUDIO_DECODER
Expand Down Expand Up @@ -69,6 +77,7 @@ typedef struct {
#ifdef __cplusplus
#include <string>
#include <tuple>
#include <vector> // for vector
struct audio_codec_state;

struct audio_codec_state *audio_codec_init(audio_codec_t audio_codec, audio_codec_direction_t);
Expand Down

0 comments on commit a0ef81d

Please sign in to comment.