Browse Source

- 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

Bernhard Reutner-Fischer 16 years ago
parent
commit
282f4912cf
2 changed files with 3 additions and 2 deletions
  1. 0 2
      include/malloc.h
  2. 3 0
      libc/stdlib/__uc_malloc.c

+ 0 - 2
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" */

+ 3 - 0
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