This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
patch for sparc-linux-gnulibc1
- To: egcs at cygnus dot com
- Subject: patch for sparc-linux-gnulibc1
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 18 Feb 1998 21:25:52 -0800
- Reply-To: Richard Henderson <rth at cygnus dot com>
The declaration of atexit conflicts with the one in the
system headers. I suggest getting rid of it.
r~
Index: gcc/gbl-ctors.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/gbl-ctors.h,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 gbl-ctors.h
--- gbl-ctors.h 1997/08/11 15:57:07 1.1.1.1
+++ gbl-ctors.h 1998/02/19 05:22:17
@@ -37,10 +37,12 @@ Boston, MA 02111-1307, USA. */
#endif
#ifdef HAVE_ATEXIT
+#ifdef NEED_DECLARATION_ATEXIT
#if defined (WINNT) || defined (NEED_ATEXIT)
extern int atexit (void (*) (void));
#else
extern void atexit (void (*) (void));
+#endif
#endif
#define ON_EXIT(FUNC,ARG) atexit ((FUNC))
#else