(atexit): Prototype now works with NT.

From-SVN: r9012
This commit is contained in:
Richard Kenner 1995-02-21 18:49:31 -05:00
parent 64e6d9cc49
commit 3709124dc1
1 changed files with 6 additions and 4 deletions

View File

@ -2,10 +2,8 @@
for getting g++ file-scope static objects constructed. This file
will get included either by libgcc2.c (for systems that don't support
a .init section) or by crtstuff.c (for those that do).
Written by Ron Guilmette (rfg@netcom.com)
Copyright (C) 1991 Free Software Foundation, Inc.
Copyright (C) 1991, 1995 Free Software Foundation, Inc.
Contributed by Ron Guilmette (rfg@segfault.us.com)
This file is part of GNU CC.
@ -32,7 +30,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
*/
#ifdef HAVE_ATEXIT
#ifdef WINNT
extern int atexit (void (*) (void));
#else
extern void atexit (void (*) (void));
#endif
#define ON_EXIT(FUNC,ARG) atexit ((FUNC))
#else
#ifdef sun