Consistently use __typeof__() rather than typeof() or __typeof() for compatibility (GCC and clang and, perhaps, other future compilers) irrespective of -std= compilation options.

This commit is contained in:
Richard Frith-Macdonald 2020-12-15 13:01:00 +00:00
parent 5026274f6c
commit 6d20773f56
11 changed files with 30 additions and 30 deletions

View file

@ -63,7 +63,7 @@ skip_offset(const char *ptr)
}
#define ROUND(V, A) \
({ typeof(V) __v=(V); typeof(A) __a=(A); \
({ __typeof__(V) __v=(V); __typeof__(A) __a=(A); \
__a*((__v+__a-1)/__a); })
/* Step through method encoding information extracting details.