summaryrefslogtreecommitdiff
path: root/gcc/gbl-ctors.h
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-02-21 23:49:31 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-02-21 23:49:31 +0000
commit4299054265e16a0e5f1da62849aadf997230a451 (patch)
tree47c93a2ed2537b951102a99e5fffdbab150117dd /gcc/gbl-ctors.h
parent801c5cece339b00854ffdb2cec0908e0d16245c7 (diff)
downloadgcc-4299054265e16a0e5f1da62849aadf997230a451.tar.gz
(atexit): Prototype now works with NT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9012 138bc75d-0d04-0410-961f-82ee72b054a4
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 3e2ab835636..76ce693320a 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