From 3709124dc1d418e37577a27623594f61ff83c91c Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 21 Feb 1995 18:49:31 -0500 Subject: (atexit): Prototype now works with NT. From-SVN: r9012 --- gcc/gbl-ctors.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gcc') diff --git a/gcc/gbl-ctors.h b/gcc/gbl-ctors.h index 3e2ab83..76ce693 100644 --- a/gcc/gbl-ctors.h +++ b/gcc/gbl-ctors.h @@ -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 -- cgit v1.1