mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
5026274f6c
commit
6d20773f56
11 changed files with 30 additions and 30 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue