From ce104350778d32ea38caa68767f119c3accc1de3 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 15 Dec 2005 19:40:16 +0000 Subject: Hide *getc* *putc* --- libc/stdio/fgetc.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libc/stdio/fgetc.c') diff --git a/libc/stdio/fgetc.c b/libc/stdio/fgetc.c index be9322714..7135848b3 100644 --- a/libc/stdio/fgetc.c +++ b/libc/stdio/fgetc.c @@ -69,17 +69,19 @@ int attribute_hidden __fgetc_unlocked_internal(FILE *stream) return EOF; } -strong_alias(__fgetc_unlocked_internal,__fgetc_unlocked) +hidden_strong_alias(__fgetc_unlocked_internal,__fgetc_unlocked) weak_alias(__fgetc_unlocked_internal,fgetc_unlocked) +hidden_strong_alias(__fgetc_unlocked_internal,__getc_unlocked) weak_alias(__fgetc_unlocked_internal,getc_unlocked) #ifndef __UCLIBC_HAS_THREADS__ +hidden_strong_alias(__fgetc_unlocked_internal,__fgetc) weak_alias(__fgetc_unlocked_internal,fgetc) weak_alias(__fgetc_unlocked_internal,getc) #endif #elif defined __UCLIBC_HAS_THREADS__ -int fgetc(register FILE *stream) +int attribute_hidden __fgetc(register FILE *stream) { if (stream->__user_locking != 0) { return __GETC_UNLOCKED_MACRO(stream); @@ -91,7 +93,7 @@ int fgetc(register FILE *stream) return retval; } } - -weak_alias(fgetc,getc); +strong_alias(__fgetc,fgetc) +weak_alias(__fgetc,getc) #endif -- cgit v1.2.3