summaryrefslogtreecommitdiff
path: root/libc/stdlib/_atexit.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2018-01-02 03:07:47 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-01-02 03:07:47 +0100
commitd7c1b279093dfb77675d391be293b756da87d1af (patch)
treeee81fd941bd70a3fbb65097b64ddba425e228559 /libc/stdlib/_atexit.c
parent23bb649090ff588e8642f0c581cfe7ce2d29c757 (diff)
remove COMPAT_ATEXIT
Diffstat (limited to 'libc/stdlib/_atexit.c')
-rw-r--r--libc/stdlib/_atexit.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libc/stdlib/_atexit.c b/libc/stdlib/_atexit.c
index 8a3196781..ffc659ca2 100644
--- a/libc/stdlib/_atexit.c
+++ b/libc/stdlib/_atexit.c
@@ -97,9 +97,7 @@ extern struct exit_function *__new_exitfn(void) attribute_hidden;
/* this is in the L___cxa_atexit object */
extern int __cxa_atexit(cxaefuncp, void *arg, void *dso_handle);
-
-/* remove old_atexit after 0.9.29 */
-#if defined(L_atexit) || defined(L_old_atexit)
+#if defined(L_atexit)
extern void *__dso_handle __attribute__ ((__weak__));
/*
@@ -108,9 +106,6 @@ extern void *__dso_handle __attribute__ ((__weak__));
*/
#ifdef L_atexit
int attribute_hidden atexit(aefuncp func)
-#else
-int old_atexit(aefuncp func);
-int old_atexit(aefuncp func)
#endif
{
/*
@@ -121,9 +116,6 @@ int old_atexit(aefuncp func)
return __cxa_atexit((cxaefuncp)func, NULL,
&__dso_handle == NULL ? NULL : __dso_handle);
}
-#ifndef L_atexit
-weak_alias(old_atexit,atexit)
-#endif
#endif
#ifdef L_on_exit