projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch from typeof to the more portable __typeof__
[project/libubox.git]
/
utils.h
diff --git
a/utils.h
b/utils.h
index
6a53b3f
..
b64b400
100644
(file)
--- a/
utils.h
+++ b/
utils.h
@@
-125,7
+125,7
@@
int clock_gettime(int type, struct timespec *tv);
(sizeof(int) == sizeof(*(1 ? ((void*)((long)(x) * 0l)) : (int*)1)))
#define __eval_once(func, x) \
(sizeof(int) == sizeof(*(1 ? ((void*)((long)(x) * 0l)) : (int*)1)))
#define __eval_once(func, x) \
- ({
typeof
(x) __x = x; func(__x); })
+ ({
__typeof__
(x) __x = x; func(__x); })
#define __eval_safe(func, x) \
__builtin_choose_expr(__is_constant(x), \
#define __eval_safe(func, x) \
__builtin_choose_expr(__is_constant(x), \