From cad1df748ee3b007f37ea08cbe340d59fc0079e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Mon, 2 Feb 2026 17:58:13 +0100 Subject: [PATCH] meson.build: define `SPA_AUDIO_MAX_CHANNELS` for C++ as well Previously the override was only present in `cc_flags`, meaning that C++ source files, like `aec-webrtc.cpp`, would not have it. Fixes: 6d74eee874ac ("spa: bump channels to 128 again") --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e8b6f38dd..2e308cfa5 100644 --- a/meson.build +++ b/meson.build @@ -82,6 +82,7 @@ common_flags = [ '-fvisibility=hidden', '-fno-strict-aliasing', '-fno-strict-overflow', + '-DSPA_AUDIO_MAX_CHANNELS=128u', '-Werror=suggest-attribute=format', '-Wsign-compare', '-Wpointer-arith', @@ -115,7 +116,6 @@ cc_flags = common_flags + [ '-Werror=old-style-definition', '-Werror=missing-parameter-type', '-Werror=strict-prototypes', - '-DSPA_AUDIO_MAX_CHANNELS=128u', ] add_project_arguments(cc.get_supported_arguments(cc_flags), language: 'c') add_project_arguments(cc_native.get_supported_arguments(cc_flags),