aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-07-12 04:39:07 +0000
committerBen Elliston <bje@gcc.gnu.org>2005-07-12 14:39:07 +1000
commit12548280a2afc5baa51ce7cd24c60fe841daa62e (patch)
treea94e497fb0d00a163c709c87ef27f748f4fcf1ab
parentd6e9821fdec1f6f309d4a5e6a61749abec8ab6b6 (diff)
downloadgcc-12548280a2afc5baa51ce7cd24c60fe841daa62e.zip
gcc-12548280a2afc5baa51ce7cd24c60fe841daa62e.tar.gz
gcc-12548280a2afc5baa51ce7cd24c60fe841daa62e.tar.bz2
xregex2.h (regexec): Qualify this prototype with __extension__ when compiling with GNU C.
* xregex2.h (regexec): Qualify this prototype with __extension__ when compiling with GNU C. From-SVN: r101910
-rw-r--r--include/ChangeLog5
-rw-r--r--include/xregex2.h8
2 files changed, 12 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 8799b29..c60ddc2 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-12 Ben Elliston <bje@au.ibm.com>
+
+ * xregex2.h (regexec): Qualify this prototype with __extension__
+ when compiling with GNU C.
+
2005-07-03 Steve Ellcey <sje@cup.hp.com>
PR other/13906
diff --git a/include/xregex2.h b/include/xregex2.h
index 358f31e..d3d0da1 100644
--- a/include/xregex2.h
+++ b/include/xregex2.h
@@ -1,6 +1,9 @@
/* 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, 1990, 1991, 1992, 1993, 1995, 1996, 1997,
+ 1998, 2000, 2005 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.
@@ -533,6 +536,9 @@ extern int regcomp (regex_t *__restrict __preg,
const char *__restrict __pattern,
int __cflags);
+#if (__GNUC__)
+__extension__
+#endif
extern int regexec (const regex_t *__restrict __preg,
const char *__restrict __string, size_t __nmatch,
regmatch_t __pmatch[__restrict_arr],