aboutsummaryrefslogtreecommitdiff
path: root/argp/argp.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-11-29 07:20:47 +0000
committerUlrich Drepper <drepper@redhat.com>2003-11-29 07:20:47 +0000
commitc5af724c0b214a517f8558887f7a70efcfa2c813 (patch)
tree8b1b822c45022d0bf414d1fc9a41794b17900410 /argp/argp.h
parent0a76d15e91c26aae360749b4eb75559971e4fcfb (diff)
downloadglibc-c5af724c0b214a517f8558887f7a70efcfa2c813.zip
glibc-c5af724c0b214a517f8558887f7a70efcfa2c813.tar.gz
glibc-c5af724c0b214a517f8558887f7a70efcfa2c813.tar.bz2
Update.
2003-10-10 Simon Josefsson <jas@extundo.com> * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h, strchrnul.h, strndup.h (from gnulib). * argp/argp-parse.c: Add alloca.h include snippet verbatim from Autoconf manual. * argp/argp-help.c: Replace alloca.h include snipper with verbatim Autoconf manual version. * argp/argp.h: Map __restrict to restrict or empty string when necessary, copied verbatim from posix/regex.h.
Diffstat (limited to 'argp/argp.h')
-rw-r--r--argp/argp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/argp/argp.h b/argp/argp.h
index cb2f85a..78a9d1b 100644
--- a/argp/argp.h
+++ b/argp/argp.h
@@ -49,6 +49,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