aboutsummaryrefslogtreecommitdiff
path: root/gcc/gbl-ctors.h
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-02-21 18:49:31 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-02-21 18:49:31 -0500
commit3709124dc1d418e37577a27623594f61ff83c91c (patch)
tree47c93a2ed2537b951102a99e5fffdbab150117dd /gcc/gbl-ctors.h
parent64e6d9cc49a9738f42db970c5453b32b60239001 (diff)
downloadgcc-3709124dc1d418e37577a27623594f61ff83c91c.zip
gcc-3709124dc1d418e37577a27623594f61ff83c91c.tar.gz
gcc-3709124dc1d418e37577a27623594f61ff83c91c.tar.bz2
(atexit): Prototype now works with NT.
From-SVN: r9012
Diffstat (limited to 'gcc/gbl-ctors.h')
-rw-r--r--gcc/gbl-ctors.h10
1 files changed, 6 insertions, 4 deletions
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