Skip to content

Commit 403a751

Browse files
committed
audio/types: IWYU
1 parent fc257ff commit 403a751

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/audio/types.cpp

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2011-2021 CESNET, z. s. p. o.
6+
* Copyright (c) 2011-2025 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -35,23 +35,19 @@
3535
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*/
3737

38-
#ifdef HAVE_CONFIG_H
39-
#include "config.h"
40-
#include "config_unix.h"
41-
#include "config_win32.h"
42-
#endif // HAVE_CONFIG_H
38+
#include "audio/types.h"
4339

40+
#include <algorithm> // for copy
41+
#include <cassert> // for assert
42+
#include <cstring> // for memcpy
43+
#include <sstream> // for basic_ostringstream
44+
#include <stdexcept> // for logic_error
45+
#include <utility> // for move
4446

4547
#include "audio/resampler.hpp"
46-
#include "audio/types.h"
4748
#include "audio/utils.h"
4849
#include "debug.h"
49-
#include "host.h"
50-
#include "utils/macros.h"
51-
52-
#include <chrono>
53-
#include <sstream>
54-
#include <stdexcept>
50+
#include "types.h" // for fec_desc, frame_flags_common
5551

5652
using std::copy;
5753
using std::logic_error;

src/audio/types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242

4343
#ifdef __cplusplus
4444
#include <cstdint>
45+
#include <cstddef>
4546
#else
47+
#include <stddef.h>
4648
#include <stdint.h>
4749
#endif
4850

0 commit comments

Comments
 (0)