From 7ca404adab483820ed7d43e961fef91d2e978f90 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 21 Aug 2000 23:31:38 +0000 Subject: Update. * stdlib/random_r.c (__setstate_r): Correct offset when computing new rptr and fptr. Reported by Michael Fischer . * posix/regex.h: Add macro definitions to allow compiling outside glibc. --- posix/regex.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'posix/regex.h') diff --git a/posix/regex.h b/posix/regex.h index 8576fe68fa..47f4af7b55 100644 --- a/posix/regex.h +++ b/posix/regex.h @@ -513,6 +513,22 @@ extern int re_exec _RE_ARGS ((const char *)); # 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 +/* 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 +#endif + /* POSIX compatibility. */ extern int regcomp _RE_ARGS ((regex_t *__restrict __preg, const char *__restrict __pattern, -- cgit 1.4.1