X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fargp.h;h=42e39adf6da8a957f4bcc92c8a13d48068770140;hb=25ef69613afa3d3e727203c74b7c011f87813663;hp=5286fc488e021ed7db792bbf02a4bf12d82a0ad3;hpb=f81666cf0bfd795a33feea079c6196ed7fc39f2b;p=gnulib.git diff --git a/lib/argp.h b/lib/argp.h index 5286fc488..42e39adf6 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