Commit 3709124d by Richard Kenner

(atexit): Prototype now works with NT.

From-SVN: r9012
parent 64e6d9cc
...@@ -2,10 +2,8 @@ ...@@ -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. */ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment