mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
*: unify config.h handling
config.h needs to be consistently included before any standard headers if we ever want to set feature test macros (like _GNU_SOURCE or whatever) inside. It can lead to hard-to-debug issues without that. It can also be problematic just for our own HAVE_* that it may define if it's not consistently made available before our own headers. Just always include it first, before everything. We already did this in many files, just not consistently.
This commit is contained in:
parent
50fe63ea76
commit
2cec77e7df
57 changed files with 112 additions and 105 deletions
|
|
@ -18,13 +18,14 @@
|
|||
along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <spa/utils/string.h>
|
||||
#include <spa/utils/cleanup.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include "device-port.h"
|
||||
#include "alsa-mixer.h"
|
||||
#include "config.h"
|
||||
|
||||
static const char *port_types[] = {
|
||||
[PA_DEVICE_PORT_TYPE_UNKNOWN] = "unknown",
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@
|
|||
#ifndef SPA_ALSA_SEQ_H
|
||||
#define SPA_ALSA_SEQ_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stddef.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
#ifdef HAVE_ALSA_UMP
|
||||
#include <alsa/ump_msg.h>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stddef.h>
|
||||
#include <unistd.h>
|
||||
|
|
@ -35,7 +37,6 @@
|
|||
#include <spa-private/dbus-helpers.h>
|
||||
#include <spa/param/audio/raw-json.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "codec-loader.h"
|
||||
#include "player.h"
|
||||
#include "iso-io.h"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
#ifndef SPA_BLUEZ5_DEFS_H
|
||||
#define SPA_BLUEZ5_DEFS_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include <spa/support/dbus.h>
|
||||
|
|
@ -17,8 +19,6 @@
|
|||
|
||||
#include <dbus/dbus.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
/* SPDX-FileCopyrightText: Copyright © 2023 Pauli Virtanen. */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
|
|
@ -15,7 +17,6 @@
|
|||
#include <spa/utils/result.h>
|
||||
#include <spa/node/io.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "iso-io.h"
|
||||
|
||||
#include "media-codecs.h"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
/* SPDX-FileCopyrightText: Copyright © 2022 Pauli Virtanen */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
|
@ -21,7 +23,6 @@
|
|||
#include <spa/node/keys.h>
|
||||
|
||||
#include "midi.h"
|
||||
#include "config.h"
|
||||
|
||||
#include "bluez5-interface-gen.h"
|
||||
#include "dbus-monitor.h"
|
||||
|
|
|
|||
|
|
@ -2,13 +2,14 @@
|
|||
/* SPDX-FileCopyrightText: Copyright © 2022 Wim Taymans */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <spa/utils/defs.h>
|
||||
|
||||
#include "config.h"
|
||||
#ifndef HAVE_FFTW
|
||||
#include "pffft.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
/* SPDX-FileCopyrightText: Copyright © 2022 Wim Taymans */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
|
@ -10,7 +12,6 @@
|
|||
|
||||
#include <spa/utils/defs.h>
|
||||
|
||||
#include "config.h"
|
||||
#ifdef HAVE_FFTW
|
||||
#include <fftw3.h>
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
/* SPDX-FileCopyrightText: Copyright © 2022 Wim Taymans */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
|
@ -10,7 +12,6 @@
|
|||
|
||||
#include <spa/utils/defs.h>
|
||||
|
||||
#include "config.h"
|
||||
#ifndef HAVE_FFTW
|
||||
#include "pffft.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
/* SPDX-FileCopyrightText: Copyright © 2021 Wim Taymans */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
|
@ -13,8 +15,6 @@
|
|||
#include <limits.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <spa/utils/result.h>
|
||||
#include <spa/utils/string.h>
|
||||
#include <spa/utils/json.h>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
|
@ -24,7 +26,6 @@
|
|||
#include <spa/monitor/device.h>
|
||||
#include <spa/monitor/utils.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "v4l2.h"
|
||||
|
||||
#ifdef HAVE_LOGIND
|
||||
|
|
|
|||
|
|
@ -2,12 +2,13 @@
|
|||
/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include <spa/support/plugin.h>
|
||||
#include <spa/support/log.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "v4l2.h"
|
||||
|
||||
extern const struct spa_handle_factory spa_v4l2_source_factory;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue