diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-11-20 02:44:34 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-11-20 02:44:34 +0000 |
commit | 2d59754f6a83fcfb57baba3ebeefaab2a96a5e78 (patch) | |
tree | d8bed8ae1d98f89d6c74d74f364cf3e41a582625 /libiberty/regex.c | |
parent | edca1aa6ec3f516f0ccd5454d871964520de58ba (diff) | |
download | gcc-2d59754f6a83fcfb57baba3ebeefaab2a96a5e78.zip gcc-2d59754f6a83fcfb57baba3ebeefaab2a96a5e78.tar.gz gcc-2d59754f6a83fcfb57baba3ebeefaab2a96a5e78.tar.bz2 |
objalloc.c, [...]: Include "config.h" before "ansidecl.h" to avoid redeclaration errors with...
* objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
"ansidecl.h" to avoid redeclaration errors with native compilers.
* regex.c: Protect config.h from multiple inclusion.
From-SVN: r90954
Diffstat (limited to 'libiberty/regex.c')
-rw-r--r-- | libiberty/regex.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libiberty/regex.c b/libiberty/regex.c index 522b0ee..3babf6c 100644 --- a/libiberty/regex.c +++ b/libiberty/regex.c @@ -32,8 +32,10 @@ #undef _GNU_SOURCE #define _GNU_SOURCE -#ifdef HAVE_CONFIG_H -# include <config.h> +#ifndef INSIDE_RECURSION +# ifdef HAVE_CONFIG_H +# include <config.h> +# endif #endif #include <ansidecl.h> |