projects
/
platform
/
upstream
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31b17e3
)
tests: use __typeof__ instead of typeof
author
Simon Ser
<contact@emersion.fr>
Mon, 10 Jan 2022 13:50:05 +0000
(14:50 +0100)
committer
Simon Ser
<contact@emersion.fr>
Mon, 10 Jan 2022 13:51:09 +0000
(14:51 +0100)
typeof is a GNU extension. Compiler extensions should be prefixed
with __ per the C standard.
Signed-off-by: Simon Ser <contact@emersion.fr>
tests/os-wrappers-test.c
patch
|
blob
|
history
diff --git
a/tests/os-wrappers-test.c
b/tests/os-wrappers-test.c
index
aadb93b
..
8d8c3ab
100644
(file)
--- 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, ...);