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:
Simon Ser 2022-01-10 14:50:05 +01:00
parent 31b17e3d85
commit 65616e946b

View File

@ -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, ...);