diff options
author | Karl Berry <karl@freefriends.org> | 2003-11-29 13:37:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2003-11-29 13:37:46 +0000 |
commit | bdfb51006347f38ceebf47b653d40c151c8e66c3 (patch) | |
tree | 5dea4f70bae6857ba84e2f77e78563695bd558b5 /lib/argp.h | |
parent | bf8de99eceb88352fcae7ff8402c9c8aff8eb1f9 (diff) | |
download | gnulib-bdfb51006347f38ceebf47b653d40c151c8e66c3.tar.gz |
argp update from libc
Diffstat (limited to 'lib/argp.h')
-rw-r--r-- | lib/argp.h | 12 |
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 |