]> git.ipfire.org Git - thirdparty/qemu.git/commit
meson: Share common C source prefixes
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 24 Apr 2025 04:50:13 +0000 (13:50 +0900)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 29 Apr 2025 07:07:19 +0000 (10:07 +0300)
commite1ccfea380ceafed77269735eee4b3b862dc8b6f
tree7abf6f1a6ba1220c3044d0dec8d7d9d3a3e41115
parent1604055e4e8ccf37ad0a27a4fcf6985201ff00ae
meson: Share common C source prefixes

gnu_source_prefix defines _GNU_SOURCE for compiler object functions.
The definition is universally available in the code base.

docs/devel/style.rst also says that the "qemu/osdep.h" header is
always included, so files included in the file is also universally
available in the code base.

Rename gnu_source_prefix to osdep_prefix, and add #include directives
that are referred by the users of gnu_source_prefix and contained in
qemu/osdep.h to safely de-duplicate #include directives.

Cc: qemu-stable@nongnu.org
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250424-buildsys-v1-3-97655e3b25d7@daynix.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit 797150d69d2edba8b1bd4a7d8c7ba2df1219c503)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
meson.build