Merge branch 'meson_build_audio_max_ch_cpp' into 'master'

meson.build: define `SPA_AUDIO_MAX_CHANNELS` for C++ as well

See merge request pipewire/pipewire!2681
This commit is contained in:
Barnabás Pőcze 2026-02-02 18:17:39 +01:00
commit c8e11343dc

View file

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