aboutsummaryrefslogtreecommitdiff
path: root/stdlib/cxa_atexit.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/cxa_atexit.c')
-rw-r--r--stdlib/cxa_atexit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/stdlib/cxa_atexit.c b/stdlib/cxa_atexit.c
index 78acbbdb3d..a3d4c5037d 100644
--- a/stdlib/cxa_atexit.c
+++ b/stdlib/cxa_atexit.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -20,6 +20,8 @@
#include <stdlib.h>
#include "exit.h"
+#undef __cxa_atexit
+
/* Register a function to be called by exit or when a shared library
is unloaded. This function is only called from code generated by
the C++ compiler. */
@@ -37,6 +39,7 @@ __cxa_atexit (void (*func) (void *), void *arg, void *d)
new->func.cxa.dso_handle = d;
return 0;
}
+INTDEF(__cxa_atexit)
/* We change global data, so we need locking. */