pipewire/spa/include
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
..
spa spa: utils: cleanup: fix __has_attribute() usage 2025-11-02 19:10:25 +01:00
meson.build spa: expose utils/cleanup.h for external users 2023-10-11 19:56:11 +02:00