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]

Re: small patch for sparc-linux-gnulibc1


   From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
   Date: 20 Oct 1997 11:07:10 +0200

   |> #if defined (WINNT) || defined (NEED_ATEXIT)
   |> extern int atexit (void (*) (void));
   |> #else
   |> extern void atexit (void (*) (void));
   |> #endif

   Note that the second prototype is broken anyway.  atexit has always
   returned int, not void.

Broken or not, all the libc5 based systems I do work on have that
prototype in both the headers and the man pages.  So we have to handle
it.

Later,
David S. Miller
davem@caip.rutgers.edu


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