pipewire/spa/include/spa
Barnabás Pőcze d3368ee0d5 spa: utils: cleanup: fix __has_attribute() usage
Unknown preprocessor symbols are replaced with 0 in preprocessor
conditionals, so if `__has_attribute()` is not supported, then
the condition will be the following:

  if 0 && 0(__cleanup__)

which is syntactically incorrect.

So split the condition and only check `__has_attribute()` if
it exists.

Fixes: 65d949558b ("spa: utils: add scope based resource cleanup")
Fixes #4962
2025-11-02 19:10:25 +01:00
..
buffer buffer: update comment, we have flags now 2025-10-06 10:31:52 +02:00
control ump: make sure we set the group correctly 2025-08-29 16:59:38 +02:00
debug spa: add some more POD tests 2025-10-31 11:39:41 +01:00
filter-graph *: don't include standard C headers inside of extern "C" 2025-05-30 09:48:28 +01:00
graph *: don't include standard C headers inside of extern "C" 2025-05-30 09:48:28 +01:00
interfaces/audio add per type API defines 2024-11-26 11:58:51 +01:00
monitor *: don't include standard C headers inside of extern "C" 2025-05-30 09:48:28 +01:00
node spa: node: io: fix typo in documentation 2025-07-23 21:26:29 +02:00
param spa: add audio.layout property 2025-10-30 12:28:07 +01:00
pod spa: add some more POD tests 2025-10-31 11:39:41 +01:00
support loop: add docs about the locking 2025-06-10 18:00:01 +02:00
utils spa: utils: cleanup: fix __has_attribute() usage 2025-11-02 19:10:25 +01:00