Skip to content

Commit 06bb519

Browse files
committed
messaging: include-what-you-use
1 parent 4a085c6 commit 06bb519

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/messaging.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* UltraGrid modules.
77
*/
88
/*
9-
* Copyright (c) 2013-2021 CESNET, z. s. p. o.
9+
* Copyright (c) 2013-2025 CESNET
1010
* All rights reserved.
1111
*
1212
* Redistribution and use in source and binary forms, with or without
@@ -38,19 +38,18 @@
3838
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3939
*/
4040

41-
#ifdef HAVE_CONFIG_H
42-
#include "config.h"
43-
#include "config_unix.h"
44-
#include "config_win32.h"
45-
#endif
46-
4741
#include "messaging.h"
4842

43+
#include <cassert> // for assert
44+
#include <chrono> // for milliseconds
4945
#include <condition_variable>
50-
#include <iostream>
46+
#include <cstdio> // for printf
47+
#include <cstdlib> // for free, malloc, calloc
5148
#include <memory>
5249
#include <mutex>
50+
#include <pthread.h> // for pthread_mutex_unlock, pthread_mutex_lock
5351
#include <unordered_map>
52+
#include <utility> // for pair
5453

5554
#include "debug.h"
5655
#include "module.h"

src/messaging.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2013-2023 CESNET, z. s. p. o.
6+
* Copyright (c) 2013-2025 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -39,9 +39,11 @@
3939
#define _MESSAGING_H
4040

4141
#ifdef __cplusplus
42+
#include <cstdint> // for uint16_t
4243
#include <cstring>
4344
#else
4445
#include <stdalign.h>
46+
#include <stdint.h> // for uint16_t
4547
#endif
4648

4749
#include "types.h"

0 commit comments

Comments
 (0)