aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-05-02 21:55:00 +0000
committerUlrich Drepper <drepper@redhat.com>2006-05-02 21:55:00 +0000
commit5631e740ff086e9c978e817509bee9d73bceeff3 (patch)
tree44f51b561dc2290850ee55cef213a8cfb84cbc6e /posix
parentd2dc7b0816ae5901826fda33cfe19ef6f927560d (diff)
downloadglibc-5631e740ff086e9c978e817509bee9d73bceeff3.zip
glibc-5631e740ff086e9c978e817509bee9d73bceeff3.tar.gz
glibc-5631e740ff086e9c978e817509bee9d73bceeff3.tar.bz2
[BZ #1201]
* posix/regex.h: g++ still cannot handled [restrict].
Diffstat (limited to 'posix')
-rw-r--r--posix/regex.h3
1 files changed, 2 insertions, 1 deletions
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