mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-21 07:00:08 -05:00
Fix some badly-behaved macros
Some macros evaluated their arguments more than once when it was not needed, or were missing parentheses.
This commit is contained in:
parent
bb4f274ae0
commit
671a7102ff
46 changed files with 162 additions and 156 deletions
|
|
@ -55,7 +55,7 @@ extern "C" {
|
|||
|
||||
#define spa_strerror(err) \
|
||||
({ \
|
||||
int _err = -err; \
|
||||
int _err = -(err); \
|
||||
if (SPA_RESULT_IS_ASYNC(err)) \
|
||||
_err = EINPROGRESS; \
|
||||
strerror(_err); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue