aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-01-10 14:50:05 +0100
committerSimon Ser <contact@emersion.fr>2022-01-10 14:51:09 +0100
commit65616e946b547bc2b20ca004662447fbadf990e3 (patch)
treed1428f7812e8c59d2102b08d9ae4dbafe7cbf4a1 /tests
parentbuild: re-open main branch for regular development (diff)
downloadwayland-65616e946b547bc2b20ca004662447fbadf990e3.tar
wayland-65616e946b547bc2b20ca004662447fbadf990e3.tar.gz
wayland-65616e946b547bc2b20ca004662447fbadf990e3.tar.bz2
wayland-65616e946b547bc2b20ca004662447fbadf990e3.tar.lz
wayland-65616e946b547bc2b20ca004662447fbadf990e3.tar.xz
wayland-65616e946b547bc2b20ca004662447fbadf990e3.tar.zst
wayland-65616e946b547bc2b20ca004662447fbadf990e3.zip
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/os-wrappers-test.c2
1 files changed, 1 insertions, 1 deletions
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, ...);