From 22f992395be7a4da254953588f9c0714eddd2965 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 18 Feb 2006 03:31:30 +0000 Subject: dont define _stdio_init if it doesnt do anything --- libc/stdio/_stdio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libc/stdio/_stdio.c') diff --git a/libc/stdio/_stdio.c b/libc/stdio/_stdio.c index 46277f99e..63fc370dd 100644 --- a/libc/stdio/_stdio.c +++ b/libc/stdio/_stdio.c @@ -250,6 +250,7 @@ void attribute_hidden _stdio_term(void) #endif } +#if defined __STDIO_BUFFERS || !defined __UCLIBC__ void attribute_hidden _stdio_init(void) { #ifdef __STDIO_BUFFERS @@ -263,8 +264,9 @@ void attribute_hidden _stdio_init(void) /* _stdio_term is done automatically when exiting if stdio is used. * See misc/internals/__uClibc_main.c and and stdlib/atexit.c. */ atexit(_stdio_term); -#endif /* __UCLIBC__ */ +#endif } +#endif /**********************************************************************/ -- cgit v1.2.3