This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

patch for sparc-linux-gnulibc1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]