(atexit): Prototype now works with NT.
From-SVN: r9012
This commit is contained in:
parent
64e6d9cc49
commit
3709124dc1
1 changed files with 6 additions and 4 deletions
|
@ -2,10 +2,8 @@
|
||||||
for getting g++ file-scope static objects constructed. This file
|
for getting g++ file-scope static objects constructed. This file
|
||||||
will get included either by libgcc2.c (for systems that don't support
|
will get included either by libgcc2.c (for systems that don't support
|
||||||
a .init section) or by crtstuff.c (for those that do).
|
a .init section) or by crtstuff.c (for those that do).
|
||||||
|
Copyright (C) 1991, 1995 Free Software Foundation, Inc.
|
||||||
Written by Ron Guilmette (rfg@netcom.com)
|
Contributed by Ron Guilmette (rfg@segfault.us.com)
|
||||||
|
|
||||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of GNU CC.
|
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 HAVE_ATEXIT
|
||||||
|
#ifdef WINNT
|
||||||
|
extern int atexit (void (*) (void));
|
||||||
|
#else
|
||||||
extern void atexit (void (*) (void));
|
extern void atexit (void (*) (void));
|
||||||
|
#endif
|
||||||
#define ON_EXIT(FUNC,ARG) atexit ((FUNC))
|
#define ON_EXIT(FUNC,ARG) atexit ((FUNC))
|
||||||
#else
|
#else
|
||||||
#ifdef sun
|
#ifdef sun
|
||||||
|
|
Loading…
Add table
Reference in a new issue