From 5631e740ff086e9c978e817509bee9d73bceeff3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 2 May 2006 21:55:00 +0000 Subject: [BZ #1201] * posix/regex.h: g++ still cannot handled [restrict]. --- posix/regex.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'posix/regex.h') diff --git a/posix/regex.h b/posix/regex.h index d787b9b..807c404 100644 --- a/posix/regex.h +++ b/posix/regex.h @@ -525,7 +525,8 @@ extern int re_exec (const char *); #endif /* gcc 3.1 and up support the [restrict] syntax. */ #ifndef __restrict_arr -# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) +# if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) \ + && !defined __GNUG__ # define __restrict_arr __restrict # else # define __restrict_arr -- cgit v1.1