]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
objalloc.c, [...]: Include "config.h" before "ansidecl.h" to avoid redeclaration...
authorRoger Sayle <roger@eyesopen.com>
Sat, 20 Nov 2004 02:44:34 +0000 (02:44 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sat, 20 Nov 2004 02:44:34 +0000 (02:44 +0000)
* 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

libiberty/ChangeLog
libiberty/objalloc.c
libiberty/regex.c
libiberty/strsignal.c
libiberty/xstrerror.c

index 756214a21229ab7eb15d89bfa47427717857fb8f..bddcee9da4011245f2d93d024bb2876dcbc279e9 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-19  Roger Sayle  <roger@eyesopen.com>
+
+       * 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.
+
 2004-11-12  Mike Stump  <mrs@apple.com>
 
        * Makefile.in (libiberty.html): Fix html generation.
index 50995691e330acb244d72f8eabb8849a97d80eec..1cda7b9861949e8999b78075a84e68ff45f7905d 100644 (file)
@@ -17,8 +17,8 @@ along with this program; if not, write to the Free Software
 Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
-#include "ansidecl.h"
 #include "config.h"
+#include "ansidecl.h"
 
 #include "objalloc.h"
 
index 522b0eedf442743348c82a3c37b3ac1c54a7134d..3babf6cbe342874c8c529a708a90d8f4e3203021 100644 (file)
 #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>
index a8a7d341fefa9694faeff23a4c06dcaf7f05f765..1ff984debc3733aaaa5c597c0415b2623b7fc70b 100644 (file)
@@ -2,11 +2,10 @@
    Written by Fred Fish.  fnf@cygnus.com
    This file is in the public domain.  */
 
+#include "config.h"
 #include "ansidecl.h"
 #include "libiberty.h"
 
-#include "config.h"
-
 /* We need to declare sys_siglist, because even if the system provides
    it we can't assume that it is declared in <signal.h> (for example,
    SunOS provides sys_siglist, but it does not declare it in any
index 9000d178f9c286d683cda570c5ee3bc4309f1ab7..e3f1ca04a261bcb9d33db6e705a2084e8353f64b 100644 (file)
@@ -15,8 +15,8 @@ will never return a @code{NULL} pointer.
 
 #include <stdio.h>
 
-#include "libiberty.h"
 #include "config.h"
+#include "libiberty.h"
 
 #ifdef VMS
 #include <errno.h>