summaryrefslogtreecommitdiff
path: root/libc/stdio/fread.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-10 00:20:35 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-10 00:20:35 +0000
commitf445c58e7015240d1e68aa3d7c2cf50a298e2c2a (patch)
tree8f04b68833d8339d0ba252b5a2ec00752d0129d4 /libc/stdio/fread.c
parent73130cae6071638370bf04d965f1e076c9710548 (diff)
Do hidden fread/fwrite/fclose
Diffstat (limited to 'libc/stdio/fread.c')
-rw-r--r--libc/stdio/fread.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/stdio/fread.c b/libc/stdio/fread.c
index 42a29b067..0defb36a0 100644
--- a/libc/stdio/fread.c
+++ b/libc/stdio/fread.c
@@ -83,14 +83,15 @@ size_t attribute_hidden __fread_unlocked(void * __restrict ptr, size_t size, siz
return 0;
}
-weak_alias(__fread_unlocked,fread_unlocked);
+weak_alias(__fread_unlocked,fread_unlocked)
#ifndef __UCLIBC_HAS_THREADS__
-weak_alias(__fread_unlocked,fread);
+hidden_strong_alias(__fread_unlocked,__fread)
+weak_alias(__fread_unlocked,fread)
#endif
#elif defined __UCLIBC_HAS_THREADS__
-size_t fread(void * __restrict ptr, size_t size, size_t nmemb,
+size_t attribute_hidden __fread(void * __restrict ptr, size_t size, size_t nmemb,
register FILE * __restrict stream)
{
size_t retval;
@@ -104,5 +105,6 @@ size_t fread(void * __restrict ptr, size_t size, size_t nmemb,
return retval;
}
+strong_alias(__fread,fread)
#endif