summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-01-17 21:47:59 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-01-17 21:47:59 +0000
commit282f4912cf56ac9c0458de2ae866a7b7576bcca1 (patch)
tree9eaafbafd9137ed1997b68164d28879e3c418488
parent01cf29f93b3bbadc20653e203333defa3f57766d (diff)
- fix compilation:
In file included from toolchain_build_i386/gcc-3.4.6/libiberty/hashtab.c:49: build_i386/staging_dir/i386-linux-uclibc/sys-include/malloc.h:193: error: ISO C forbids data definition with no type or storage class
-rw-r--r--include/malloc.h2
-rw-r--r--libc/stdlib/__uc_malloc.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/malloc.h b/include/malloc.h
index d6a731115..12834a547 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -190,8 +190,6 @@ 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 51878a86b..b96e8c469 100644
--- a/libc/stdlib/__uc_malloc.c
+++ b/libc/stdlib/__uc_malloc.c
@@ -22,6 +22,9 @@ Cambridge, MA 02139, USA.
#include <unistd.h>
#include <malloc.h>
+libc_hidden_proto(__uc_malloc);
+libc_hidden_proto(__uc_malloc_failed);
+
void (*__uc_malloc_failed)(size_t size) = NULL;
/* Seemingly superfluous assigment of NULL above prevents gas error
* ("__uc_malloc_failed can't be equated to common symbol