mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04: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
|
|
@ -2,11 +2,11 @@
|
|||
/* SPDX-FileCopyrightText: Copyright © 2021 Red Hat, Inc. */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifndef PWTEST_H
|
||||
#define PWTEST_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <limits.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
/* SPDX-FileCopyrightText: Copyright © 2019 Wim Taymans */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "pwtest.h"
|
||||
|
||||
PWTEST(openal_info_test)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue