diff options
author | Jim Meyering <jim@meyering.net> | 2001-12-15 16:57:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-12-15 16:57:15 +0000 |
commit | e92b78f87377bb7ec2dd0e6103c537684c224f0a (patch) | |
tree | 25e810ffc4665ddffd8edcf2c837379bcdcd26cf | |
parent | 83c58cadbc45b4bb27d5b383c69dddcf67621ccc (diff) | |
download | coreutils-e92b78f87377bb7ec2dd0e6103c537684c224f0a.tar.xz |
(__restrict_arr): Update from libc.
-rw-r--r-- | lib/regex.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/regex.h b/lib/regex.h index b9c2d97cc..8b8bb9d5a 100644 --- a/lib/regex.h +++ b/lib/regex.h @@ -1,6 +1,6 @@ /* Definitions for data structures and routines for the regular expression library, version 0.12. - Copyright (C) 1985,1989-1993,1995-1998, 2000 Free Software Foundation, Inc. + Copyright (C) 1985,1989-93,1995-98,2000,2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Its master source is NOT part of the C library, however. The master source lives in /gd/gnu/lib. @@ -529,10 +529,14 @@ extern int re_exec _RE_ARGS ((const char *)); # endif # endif #endif -/* For now unconditionally define __restrict_arr to expand to nothing. - Ideally we would have a test for the compiler which allows defining - it to restrict. */ -#define __restrict_arr +/* gcc 3.1 and up support the [restrict] syntax. */ +#ifndef __restrict_arr +# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) +# define __restrict_arr __restrict +# else +# define __restrict_arr +# endif +#endif /* POSIX compatibility. */ extern int regcomp _RE_ARGS ((regex_t *__restrict __preg, |