*: 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:
Sam James 2025-05-30 10:15:49 +01:00 committed by Wim Taymans
parent 50fe63ea76
commit 2cec77e7df
57 changed files with 112 additions and 105 deletions

View file

@ -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>