mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
spa: utils: cleanup: fix GCC version check
GCC 10 seems to support dereferencing incomplete types in `__typeof__`.
This commit is contained in:
parent
3fec887a5f
commit
7191ccb0b8
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ __extension__ ({ \
|
|||
_old_value; \
|
||||
})
|
||||
|
||||
#if __GNUC__ > 10 || defined(__clang__)
|
||||
#if __GNUC__ >= 10 || defined(__clang__)
|
||||
#define spa_steal_ptr(ptr) ((__typeof__(*(ptr)) *) spa_exchange((ptr), NULL))
|
||||
#else
|
||||
#define spa_steal_ptr(ptr) ((__typeof__(ptr)) spa_exchange((ptr), NULL))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue