From ad1a4db8a51c4e0e5db999b99bc6cfd83a1e955c Mon Sep 17 00:00:00 2001 From: sayle Date: Sat, 20 Nov 2004 02:44:34 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90954 138bc75d-0d04-0410-961f-82ee72b054a4 --- libiberty/regex.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libiberty/regex.c') diff --git a/libiberty/regex.c b/libiberty/regex.c index 522b0eedf44..3babf6cbe34 100644 --- a/libiberty/regex.c +++ b/libiberty/regex.c @@ -32,8 +32,10 @@ #undef _GNU_SOURCE #define _GNU_SOURCE -#ifdef HAVE_CONFIG_H -# include +#ifndef INSIDE_RECURSION +# ifdef HAVE_CONFIG_H +# include +# endif #endif #include -- cgit v1.2.1