mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
tests: use __typeof__ instead of typeof
typeof is a GNU extension. Compiler extensions should be prefixed with __ per the C standard. Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
31b17e3d85
commit
65616e946b
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ static int fall_back;
|
|||
|
||||
#define REAL(func) (__interceptor_ ## func) ? \
|
||||
__interceptor_ ## func : \
|
||||
(typeof(&__interceptor_ ## func))dlsym(RTLD_NEXT, #func)
|
||||
(__typeof__(&__interceptor_ ## func))dlsym(RTLD_NEXT, #func)
|
||||
|
||||
DECL(int, socket, int, int, int);
|
||||
DECL(int, fcntl, int, int, ...);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue