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
|
@ -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…
Reference in New Issue
Block a user