summaryrefslogtreecommitdiff
path: root/lib/argp.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2003-11-29 13:37:46 +0000
committerKarl Berry <karl@freefriends.org>2003-11-29 13:37:46 +0000
commitbdfb51006347f38ceebf47b653d40c151c8e66c3 (patch)
tree5dea4f70bae6857ba84e2f77e78563695bd558b5 /lib/argp.h
parentbf8de99eceb88352fcae7ff8402c9c8aff8eb1f9 (diff)
downloadgnulib-bdfb51006347f38ceebf47b653d40c151c8e66c3.tar.gz
argp update from libc
Diffstat (limited to 'lib/argp.h')
-rw-r--r--lib/argp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/argp.h b/lib/argp.h
index 5286fc488e..42e39adf6d 100644
--- a/lib/argp.h
+++ b/lib/argp.h
@@ -48,6 +48,18 @@
# 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