From b912ca1144ef3e8f006c714805cfb9cc61dfbaca Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 27 May 2001 07:05:32 +0000 Subject: Update. 2001-05-25 Bruce Mitchener * manual/ctype.texi: Minor fix. * manual/install.texi: Likewise. * manual/startup.texi: Likewise. * manual/examples/dir.c: Use perror() rather than puts(). 2001-05-25 David Mosberger * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Put stuff following #endif directive inside a comment to avoid compiler warnings. 2001-05-25 Philipp Thomas * nis/nis_print.c (nis_nstype2str): Don't mark names of naming services for translation, only UNKNOWN needs it. Add comment to prevent it for the future. 2001-05-25 Joseph S. Myers * misc/sys/cdefs.h (__restrict_arr): Define appropriately for GCC 3.1 and non-GCC C99 compilers. --- misc/sys/cdefs.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'misc/sys') diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 0c1d2de45b..ec3b48d212 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -195,8 +195,20 @@ /* ISO C99 also allows to declare arrays as non-overlapping. The syntax is array_name[restrict] - But gcc so far does not support this syntax. We define a separate macro - for this which can be enabled if the underlying compiler supports it. */ -#define __restrict_arr + GCC 3.1 supports this. */ +#if __GNUC_PREREQ (3,1) +# define __restrict_arr __restrict +#else +# ifdef __GNUC__ +# define __restrict_arr /* Not supported in old GCC. */ +# else +# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L +# define __restrict_arr restrict +# else +/* Some other non-C99 compiler. */ +# define __restrict_arr /* Not supported. */ +# endif +# endif +#endif #endif /* sys/cdefs.h */ -- cgit 1.4.1