From 65616e946b547bc2b20ca004662447fbadf990e3 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 10 Jan 2022 14:50:05 +0100 Subject: [PATCH] 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 --- tests/os-wrappers-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/os-wrappers-test.c b/tests/os-wrappers-test.c index aadb93b..8d8c3ab 100644 --- a/tests/os-wrappers-test.c +++ b/tests/os-wrappers-test.c @@ -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, ...);