Skip to content

Commit dc80f7c

Browse files
committed
portaudio_common: include-what-you-use
1 parent 223f2b9 commit dc80f7c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/audio/portaudio_common.c

+5-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2018-2023 CESNET, z. s. p. o.
6+
* Copyright (c) 2018-2025 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -35,14 +35,12 @@
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
43-
38+
#include <assert.h> // for assert
4439
#include <portaudio.h>
4540
#include <stdbool.h>
41+
#include <stdio.h> // for snprintf, printf, NULL
42+
#include <stdlib.h> // for calloc
43+
#include <string.h> // for strncpy, strstr
4644

4745
#include "debug.h"
4846
#include "portaudio_common.h"

src/audio/portaudio_common.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <[email protected]>
44
*/
55
/*
6-
* Copyright (c) 2018-2021 CESNET, z. s. p. o.
6+
* Copyright (c) 2018-2025 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -38,7 +38,9 @@
3838
#ifndef UTILS_PORTAUDIO_H_
3939
#define UTILS_PORTAUDIO_H_
4040

41-
#include "../types.h"
41+
#include <portaudio.h> // for PaDeviceIndex
42+
#include <stdbool.h> // for bool
43+
struct device_info;
4244

4345
#ifdef __cplusplus
4446
extern "C" {

0 commit comments

Comments
 (0)