diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-04-07 16:21:25 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-04-07 16:21:33 +0300 |
commit | ace64897d47b9bc7af277d8a3f8a0ff67976cba8 (patch) | |
tree | d540055780c8cedf76712c040e0906a722163e1a /utils.h | |
parent | 92009b7f989f83f83159a43574ce5e36b7c4d5a1 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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), \ |