diff options
| author | Simon Ser <contact@emersion.fr> | 2022-01-10 14:50:05 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2022-01-10 14:51:09 +0100 |
| commit | 65616e946b547bc2b20ca004662447fbadf990e3 (patch) | |
| tree | d1428f7812e8c59d2102b08d9ae4dbafe7cbf4a1 | |
| parent | build: re-open main branch for regular development (diff) | |
| download | wayland-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>
| -rw-r--r-- | tests/os-wrappers-test.c | 2 |
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, ...); |
