about summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-05-27 07:05:32 +0000
committerUlrich Drepper <drepper@redhat.com>2001-05-27 07:05:32 +0000
commitb912ca1144ef3e8f006c714805cfb9cc61dfbaca (patch)
treec89a7a06f51213f72f673d6ba5fdb022cde32b22 /misc
parent995a692a486b2e250f598097543dd04135cec327 (diff)
downloadglibc-b912ca1144ef3e8f006c714805cfb9cc61dfbaca.tar.gz
glibc-b912ca1144ef3e8f006c714805cfb9cc61dfbaca.tar.xz
glibc-b912ca1144ef3e8f006c714805cfb9cc61dfbaca.zip
Update.
2001-05-25  Bruce Mitchener  <bruce@cubik.org>

	* 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  <davidm@hpl.hp.com>

	* 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  <pthomas@suse.de>

	* 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  <jsm28@cam.ac.uk>

	* misc/sys/cdefs.h (__restrict_arr): Define appropriately for GCC
	3.1 and non-GCC C99 compilers.
Diffstat (limited to 'misc')
-rw-r--r--misc/sys/cdefs.h18
1 files changed, 15 insertions, 3 deletions
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 */