summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-15 21:10:52 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-15 21:10:52 +0000
commit76bdc95e64bcede607b2b4306d8feca9129f3f15 (patch)
tree3df0fdc37ea28e1716ca3e0678257c35b0c8ad64
parent02c55909c6b19a61df0de5e144c2b76612bbb022 (diff)
add libc_hidden_xxxx for __uc_malloc
-rw-r--r--include/malloc.h2
-rw-r--r--libc/stdlib/__uc_malloc.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h
index 05eac9fdd..844143cc9 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -190,6 +190,8 @@ extern int mallopt __MALLOC_P ((int __param, int __val));
* NB: do not use stdio in __uc_malloc_failed handler! */
extern void *__uc_malloc(size_t size);
extern void (*__uc_malloc_failed)(size_t size);
+libc_hidden_proto(__uc_malloc);
+libc_hidden_proto(__uc_malloc_failed);
#ifdef __cplusplus
} /* end of extern "C" */
diff --git a/libc/stdlib/__uc_malloc.c b/libc/stdlib/__uc_malloc.c
index 9c8445184..121fe08a4 100644
--- a/libc/stdlib/__uc_malloc.c
+++ b/libc/stdlib/__uc_malloc.c
@@ -25,6 +25,7 @@ Cambridge, MA 02139, USA.
#include <malloc.h>
void (*__uc_malloc_failed)(size_t size);
+libc_hidden_data_def(__uc_malloc_failed);
void *__uc_malloc(size_t size)
{
@@ -39,3 +40,4 @@ void *__uc_malloc(size_t size)
__uc_malloc_failed(size);
}
}
+libc_hidden_def(__uc_malloc);