[git commit] remove duplicate prototypes for _stdio_term().
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jun 15 12:00:29 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=56023566de1169f19911097f27297c21134e1fa3
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
libc/stdio/_stdio.c | 2 +-
libc/stdlib/_atexit.c | 1 +
libc/stdlib/abort.c | 3 ---
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/libc/stdio/_stdio.c b/libc/stdio/_stdio.c
index 2abd63a..f9cbd46 100644
--- a/libc/stdio/_stdio.c
+++ b/libc/stdio/_stdio.c
@@ -185,7 +185,7 @@ void attribute_hidden __stdio_init_mutex(__UCLIBC_MUTEX_TYPE *m)
/**********************************************************************/
/* We assume here that we are the only remaining thread. */
-void attribute_hidden _stdio_term(void)
+void _stdio_term(void)
{
#if defined(__STDIO_BUFFERS) || defined(__UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__)
register FILE *ptr;
diff --git a/libc/stdlib/_atexit.c b/libc/stdlib/_atexit.c
index 770494e..4bb8840 100644
--- a/libc/stdlib/_atexit.c
+++ b/libc/stdlib/_atexit.c
@@ -40,6 +40,7 @@
#include <features.h>
#include <unistd.h>
#include <stdlib.h>
+#include <stdio.h>
#include <errno.h>
#include <atomic.h>
diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c
index a5bac46..ffb7b2e 100644
--- a/libc/stdlib/abort.c
+++ b/libc/stdlib/abort.c
@@ -47,9 +47,6 @@ static __always_inline int not_null_ptr(const void *p)
# warning "no abort instruction defined for your arch"
#endif
-#ifdef __UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT__
-extern void weak_function _stdio_term(void) attribute_hidden;
-#endif
static smallint been_there_done_that = 0;
/* Be prepared in case multiple threads try to abort() */
More information about the uClibc-cvs
mailing list