Map __restrict to restrict or empty string when
authordrepper <drepper>
Sat, 29 Nov 2003 07:19:31 +0000 (07:19 +0000)
committerdrepper <drepper>
Sat, 29 Nov 2003 07:19:31 +0000 (07:19 +0000)
necessary, copied verbatim from posix/regex.h.

argp/argp.h

index cb2f85a..78a9d1b 100644 (file)
 # endif
 #endif
 
+/* GCC 2.95 and later have "__restrict"; C99 compilers have
+   "restrict", and "configure" may have defined "restrict".  */
+#ifndef __restrict
+# if ! (2 < __GNUC__ || (2 == __GNUC__ && 95 <= __GNUC_MINOR__))
+#  if defined restrict || 199901L <= __STDC_VERSION__
+#   define __restrict restrict
+#  else
+#   define __restrict
+#  endif
+# endif
+#endif
+
 #ifndef __error_t_defined
 typedef int error_t;
 # define __error_t_defined