Use the alternate form of the gcc extension that works even with

-ansi -pedantic without issuing a warning, and which is recommended
by gcc manual.

MFC after:	1 week
This commit is contained in:
kib 2011-11-18 09:05:25 +00:00
parent d7e31282cb
commit 6332d67cd9

View File

@ -324,6 +324,6 @@ __END_DECLS
* Access a variable length array that has been declared as a fixed
* length array.
*/
#define __PAST_END(array, offset) (((typeof(*(array)) *)(array))[offset])
#define __PAST_END(array, offset) (((__typeof__(*(array)) *)(array))[offset])
#endif /* _SYS_PARAM_H_ */