Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-04-07 16:21:25 +0300
committerFelix Fietkau <nbd@nbd.name>2018-04-07 16:21:33 +0300
commitace64897d47b9bc7af277d8a3f8a0ff67976cba8 (patch)
treed540055780c8cedf76712c040e0906a722163e1a /utils.h
parent92009b7f989f83f83159a43574ce5e36b7c4d5a1 (diff)
switch from typeof to the more portable __typeof__
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.h b/utils.h
index 6a53b3f..b64b400 100644
--- 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) \
- ({ typeof(x) __x = x; func(__x); })
+ ({ __typeof__(x) __x = x; func(__x); })
#define __eval_safe(func, x) \
__builtin_choose_expr(__is_constant(x), \